1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 13:29:49 +00:00

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>
This commit is contained in:
Ed Bartosh
2015-06-16 14:19:49 +03:00
committed by Richard Purdie
parent 5daadf85ed
commit 40764a309d
3 changed files with 13 additions and 2 deletions
+1 -1
View File
@@ -305,7 +305,7 @@ def main(argv):
parser.print_help()
sys.exit(1)
hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)
return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)
if __name__ == "__main__":