summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runexported.py
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2016-07-04 12:23:16 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-04 15:22:22 +0100
commit84d854c98bd201f3e92e440c1d9a64ba4f31e6da (patch)
tree074a8f869dfbfd61824a62ea5e63e3295023ba5f /meta/lib/oeqa/runexported.py
parent2d565fae46125d2d4016e7eead1a9043808d0cf9 (diff)
downloadpoky-84d854c98bd201f3e92e440c1d9a64ba4f31e6da.tar.gz
oetest.py: Add command line parameter support for tag in testexport
This allows to use a command line argument to change the tag used to filter test instead of rebuilding the tests. [YOCTO #8532] (From OE-Core rev: 928e0eecdb126f7d0bacd05b7057fc825e0d8f05) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runexported.py')
-rwxr-xr-xmeta/lib/oeqa/runexported.py6
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