<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 14 July 2015 at 16:57, Christopher Larson <span dir="ltr"><<a href="mailto:kergoth@gmail.com" target="_blank">kergoth@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":45l" class="" style="overflow:hidden">+ parser_create_workspace = subparsers.add_parser('create-workspace',<br>
+ help='Set up a workspace',<br>
+ description='Sets up a new workspace. NOTE: other <span class="">devtool</span> subcommands will create a workspace automatically as needed, so you only need to use %(prog)s if you want to specify where the workspace should be located.')<br>
+ parser_create_workspace.add_argument('layerpath', nargs='?', help='Path in which the workspace layer should be created')<br>
+ parser_create_workspace.add_argument('--create-only', action="store_true", help='Only create the workspace layer, do not alter configuration')<br>
+ parser_create_workspace.set_defaults(func=create_workspace)</div></blockquote></div><br>This is causing the selftests to abort:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">FAIL: test_create_workspace (oeqa.selftest.devtool.DevtoolTests)</div><div class="gmail_extra">----------------------------------------------------------------------</div><div class="gmail_extra">Traceback (most recent call last):</div><div class="gmail_extra"> File "/home/ross/Yocto/poky/meta/lib/oeqa/utils/decorators.py", line 102, in wrapped_f</div><div class="gmail_extra"> return func(*args)</div><div class="gmail_extra"> File "/home/ross/Yocto/poky/meta/lib/oeqa/selftest/devtool.py", line 97, in test_create_workspace</div><div class="gmail_extra"> result = runCmd('devtool create-workspace %s' % tempdir)</div><div class="gmail_extra"> File "/home/ross/Yocto/poky/meta/lib/oeqa/utils/commands.py", line 104, in runCmd</div><div class="gmail_extra"> raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, result.output))</div><div class="gmail_extra">AssertionError: Command 'devtool create-workspace /tmp/devtoolqaCuFJBv' returned non-zero exit status 1:</div><div class="gmail_extra">Traceback (most recent call last):</div><div class="gmail_extra"> File "/home/ross/Yocto/poky/scripts/devtool", line 279, in <module></div><div class="gmail_extra"> ret = main()</div><div class="gmail_extra"> File "/home/ross/Yocto/poky/scripts/devtool", line 268, in main</div><div class="gmail_extra"> ret = args.func(args, config, basepath, workspace, tinfoil)</div><div class="gmail_extra">TypeError: create_workspace() takes exactly 4 arguments (5 given)</div><div class="gmail_extra"><br></div><div class="gmail_extra">(MACHINE=qemux86 oe-selftest --run-tests devtool)</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div></div>