Unverified Commit 17f614b9 authored by Jeffrey Booher-Kaeding's avatar Jeffrey Booher-Kaeding Committed by GitHub
Browse files

Merge pull request #2 from vstehle/fixes

Fixes
parents b965d461 04179171
......@@ -146,13 +146,13 @@ def dict_2_md(input_list,file):
def main():
#Command line argument 1, ekl file to open, else open sample
log_file = sys.argv[1] if len(sys.argv) >= 2 else "Sample.ekl"
log_file = sys.argv[1] if len(sys.argv) >= 2 else "sample.ekl"
db1 = list() #"database 1" all tests.
with open(log_file,"r",encoding="utf-16") as f: #files are encoded in utf-16
db1 = ekl_parser(f.readlines())
#Command line argument 2, seq file to open, else open sample
seq_file = sys.argv[2] if len(sys.argv) >= 3 else "Sample.seq"
seq_file = sys.argv[2] if len(sys.argv) >= 3 else "sample.seq"
db2 = dict() #"database 2" all test sets that should run
with open(seq_file,"r",encoding="utf-16") as f: #files are encoded in utf-16
db2 = seq_parser(f)
......@@ -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()
# SCT_Parser
---
This is an external Parser script for UEFI SCT. (WIP)
It's designed to read a `.ekl` results log from an UEFI SCT run, and a generated `.seq` from UEFI SCT configurator.
......@@ -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
```
Supports Markdown
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