diff options
Diffstat (limited to 'meta/lib/oeqa/runexported.py')
| -rwxr-xr-x | meta/lib/oeqa/runexported.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runexported.py b/meta/lib/oeqa/runexported.py index 125e86d0e6..7e245c4120 100755 --- a/meta/lib/oeqa/runexported.py +++ b/meta/lib/oeqa/runexported.py | |||
| @@ -81,6 +81,7 @@ def main(): | |||
| 81 | specified in the json if that directory actually exists or it will error out.") | 81 | specified in the json if that directory actually exists or it will error out.") |
| 82 | parser.add_argument("-l", "--log-dir", dest="log_dir", help="This sets the path for TEST_LOG_DIR. If not specified \ | 82 | parser.add_argument("-l", "--log-dir", dest="log_dir", help="This sets the path for TEST_LOG_DIR. If not specified \ |
| 83 | the current dir is used. This is used for usually creating a ssh log file and a scp test file.") | 83 | the current dir is used. This is used for usually creating a ssh log file and a scp test file.") |
| 84 | parser.add_argument("-a", "--tag", dest="tag", help="Only run test with specified tag.") | ||
| 84 | parser.add_argument("json", help="The json file exported by the build system", default="testdata.json", nargs='?') | 85 | parser.add_argument("json", help="The json file exported by the build system", default="testdata.json", nargs='?') |
| 85 | 86 | ||
| 86 | args = parser.parse_args() | 87 | args = parser.parse_args() |
| @@ -107,6 +108,9 @@ def main(): | |||
| 107 | if not os.path.isdir(d["DEPLOY_DIR"]): | 108 | if not os.path.isdir(d["DEPLOY_DIR"]): |
| 108 | print("WARNING: The path to DEPLOY_DIR does not exist: %s" % d["DEPLOY_DIR"]) | 109 | print("WARNING: The path to DEPLOY_DIR does not exist: %s" % d["DEPLOY_DIR"]) |
| 109 | 110 | ||
| 111 | parsedArgs = {} | ||
| 112 | parsedArgs["tag"] = args.tag | ||
| 113 | |||
| 110 | extract_sdk(d) | 114 | extract_sdk(d) |
| 111 | 115 | ||
| 112 | target = FakeTarget(d) | 116 | target = FakeTarget(d) |
| @@ -114,7 +118,7 @@ def main(): | |||
| 114 | setattr(target, key, loaded["target"][key]) | 118 | setattr(target, key, loaded["target"][key]) |
| 115 | 119 | ||
| 116 | target.exportStart() | 120 | target.exportStart() |
| 117 | tc = ExportTestContext(d, target, True) | 121 | tc = ExportTestContext(d, target, True, parsedArgs) |
| 118 | tc.loadTests() | 122 | tc.loadTests() |
| 119 | tc.runTests() | 123 | tc.runTests() |
| 120 | 124 | ||
