gitlab.arm.com will be in the maintainance mode on Wednesday June 29th 01:00 - 10:00 (UTC+1). Repositories is read only during the maintainance.

Commit e8a56ae0 authored by Vincent Stehlé's avatar Vincent Stehlé
Browse files

Parser.py: fix key:value search results printing


Signed-off-by: Vincent Stehlé's avatarVincent Stehlé <vincent.stehle@arm.com>
parent 4d68b45d
......@@ -207,6 +207,6 @@ def main():
#print the dict
print("found:",len(found),"items with search constraints")
for x in found:
print(found[x]["guid"],":",found[x]["name"],"with",found[x][find_key],":",found[x][find_value])
print(x["guid"],":",x["name"],"with",find_key,":",x[find_key])
main()
......@@ -12,7 +12,7 @@ Usage to generate a "result md" is such. `python3 parser.py <log_file.ekl> <seq_
If you do no provided any command line arguments it will use `sample.ekl` and `sample.seq`.
### Custom search (WIP)
### Custom search
For a custom Key:value search, the next two arguments *MUST be included together.* The program will search and display files that met that constraint, without the crosscheck, and display the names, guid, and key:value to the command line. `python3 Parser.py <file.ekl> <file.seq> <search key> <search value>`
you can use the `test_dict` below to see available keys.
......@@ -68,4 +68,4 @@ seq_dict = {
"rev": "some hex/numb",
"Order": "some hex/num"
}
```
\ No newline at end of file
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment