diff options
Diffstat (limited to 'scripts/lib/resulttool/manualexecution.py')
-rwxr-xr-x | scripts/lib/resulttool/manualexecution.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/lib/resulttool/manualexecution.py b/scripts/lib/resulttool/manualexecution.py index 64ec581a9f..ecdc4e7a7a 100755 --- a/scripts/lib/resulttool/manualexecution.py +++ b/scripts/lib/resulttool/manualexecution.py | |||
@@ -18,7 +18,11 @@ import sys | |||
18 | import datetime | 18 | import datetime |
19 | import re | 19 | import re |
20 | from oeqa.core.runner import OETestResultJSONHelper | 20 | from oeqa.core.runner import OETestResultJSONHelper |
21 | from resulttool.resultsutils import load_json_file | 21 | |
22 | def load_json_file(file): | ||
23 | with open(file, "r") as f: | ||
24 | return json.load(f) | ||
25 | |||
22 | 26 | ||
23 | class ManualTestRunner(object): | 27 | class ManualTestRunner(object): |
24 | def __init__(self): | 28 | def __init__(self): |
@@ -134,4 +138,4 @@ def register_commands(subparsers): | |||
134 | description='helper script for results populating during manual test execution. You can find manual test case JSON file in meta/lib/oeqa/manual/', | 138 | description='helper script for results populating during manual test execution. You can find manual test case JSON file in meta/lib/oeqa/manual/', |
135 | group='manualexecution') | 139 | group='manualexecution') |
136 | parser_build.set_defaults(func=manualexecution) | 140 | parser_build.set_defaults(func=manualexecution) |
137 | parser_build.add_argument('file', help='specify path to manual test case JSON file.Note: Please use \"\" to encapsulate the file path.') \ No newline at end of file | 141 | parser_build.add_argument('file', help='specify path to manual test case JSON file.Note: Please use \"\" to encapsulate the file path.') |