[OE-core] [PATCH] oeqa/runexported: Added default json file name as first parameter.
Lucian Musat
george.l.musat at intel.com
Thu Sep 24 09:33:17 UTC 2015
Instead of exiting when no parameter is given the default json file
name should be used.
Signed-off-by: Lucian Musat <george.l.musat at intel.com>
---
meta/lib/oeqa/runexported.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/lib/oeqa/runexported.py b/meta/lib/oeqa/runexported.py
index 4213cab..d6097a1 100755
--- a/meta/lib/oeqa/runexported.py
+++ b/meta/lib/oeqa/runexported.py
@@ -90,7 +90,7 @@ def main():
(options, args) = parser.parse_args()
if len(args) != 1:
- parser.error("Incorrect number of arguments. The one and only argument should be a json file exported by the build system")
+ args.append("testdata.json") #default file name
with open(args[0], "r") as f:
loaded = json.load(f)
--
2.1.4
More information about the Openembedded-core
mailing list