]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/prservice: Fix whitespace problem
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Feb 2016 12:11:16 +0000 (12:11 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Feb 2016 12:20:36 +0000 (12:20 +0000)
Recent bitbake changes mean the whitespace formatting around the way functions are
defined, changed which broke the rather ugly construct this test uses to append to
a python function. This really needs to be rewritten and improved but fix the
whitespace so at least the tests work again and other regressions don't creep in.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/prservice.py

index 4187fbfeeafbc1895a12e4d711c6cd2a2cd6faa3..f22288eaf67e19f30249a467470e301a789995c9 100644 (file)
@@ -34,7 +34,7 @@ class BitbakePrTests(oeSelfTest):
         return str(stamps[0])
 
     def increment_package_pr(self, package_name):
-        inc_data = "do_package_append() {\nbb.build.exec_func('do_test_prserv', d)\n}\ndo_test_prserv() {\necho \"The current date is: %s\"\n}" % datetime.datetime.now()
+        inc_data = "do_package_append() {\n    bb.build.exec_func('do_test_prserv', d)\n}\ndo_test_prserv() {\necho \"The current date is: %s\"\n}" % datetime.datetime.now()
         self.write_recipeinc(package_name, inc_data)
         bitbake("-ccleansstate %s" % package_name)
         res = bitbake(package_name, ignore_status=True)