<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 20 October 2015 at 10:25, Robert Yang <span dir="ltr"><<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@windriver.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 style="overflow:hidden">Fixed:<br>
$ bitbake-<span>prserv</span>-tool import /tmp/1<br>
File "/path/to/lib/bb/parse/__init__.py", line 114, in handle(fn='/tmp/1', data=<bb.data_smart.DataSmart object at 0x2369bd0>, include=True):<br>
return h['handle'](fn, data, include)<br>
> raise ParseError("not a BitBake file", fn)<br>
<br>
ParseError: ParseError in /tmp/1: not a BitBake file<br>
<br>
But 1.conf works well, its help also shows "<file.conf>", so check the<br>
filename and print proper error message.</div></blockquote></div><br>This breaks the selftest:</div><div class="gmail_extra"><br>======================================================================<br>FAIL: test_import_export_override_db (oeqa.selftest.prservice.BitbakePrTests)<br>----------------------------------------------------------------------<br>Traceback (most recent call last):<br> File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/decorators.py", line 106, in wrapped_f<br> return func(*args, **kwargs)<br> File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/prservice.py", line 97, in test_import_export_override_db<br> self.run_test_pr_export_import('m4', replace_current_db=False)<br> File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/prservice.py", line 74, in run_test_pr_export_import<br> self.assertEqual(export_result.status, 0, msg="PR Service database export failed: %s" % export_result.output)<br>AssertionError: 1 != 0 : PR Service database export failed: ERROR: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/export.inc must end with .conf!<br><br>======================================================================<br>FAIL: test_import_export_replace_db (oeqa.selftest.prservice.BitbakePrTests)<br>----------------------------------------------------------------------<br>Traceback (most recent call last):<br> File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/decorators.py", line 106, in wrapped_f<br> return func(*args, **kwargs)<br> File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/prservice.py", line 93, in test_import_export_replace_db<br> self.run_test_pr_export_import('m4')<br> File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/prservice.py", line 74, in run_test_pr_export_import<br> self.assertEqual(export_result.status, 0, msg="PR Service database export failed: %s" % export_result.output)<br>AssertionError: 1 != 0 : PR Service database export failed: ERROR: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/export.inc must end with .conf!<br><br></div><div class="gmail_extra">Ross</div></div>