summaryrefslogtreecommitdiffstats
path: root/scripts/wic
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-06-16 14:19:49 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-23 11:47:34 +0100
commit40764a309d7f20421ca199e2283070bb561bf8c3 (patch)
treea5e120c7736c7de279ff2f4dae5c5bb52e4c0d65 /scripts/wic
parent5daadf85eddf6c5898fe2b9a9ef7b1e9ed434d84 (diff)
downloadpoky-40764a309d7f20421ca199e2283070bb561bf8c3.tar.gz
wic: Return error code when wic fails to invoke command
Return 1 if command doesn't exist or wic is called without any commmand. Return result of invoke_command as wic return code. Added tests for unsupported command and no command. Fixed typo in test case test02_createhelp spotted by this fix. [YOCTO #7856] (From OE-Core rev: ebd9f7b1da8ed556e98aab4d5f4e81707ac44b27) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/wic')
-rwxr-xr-xscripts/wic2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/wic b/scripts/wic
index dda72a9c27..a38ecc0b8b 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -305,7 +305,7 @@ def main(argv):
305 parser.print_help() 305 parser.print_help()
306 sys.exit(1) 306 sys.exit(1)
307 307
308 hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands) 308 return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)
309 309
310 310
311if __name__ == "__main__": 311if __name__ == "__main__":