Instead of exiting when no parameter is given the default json file
name should be used.

Signed-off-by: Lucian Musat <[email protected]>
---
 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

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to