Bug 4506 - bitbake self-tests for fetcher fail on python 2.6
Summary: bitbake self-tests for fetcher fail on python 2.6
Status: VERIFIED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.5
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-05-17 07:56 UTC by Stefan Stanacar
Modified: 2013-10-07 13:33 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Stanacar 2013-05-17 07:56:40 UTC
There are two problems in lib/bb/tests/fetch.py:

@unittest.skipIf(os.environ.get("BB_SKIP_NETTESTS") == "yes",
AttributeError: 'module' object has no attribute 'skipIf'


and:

File "/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly/build/bitbake/lib/bb/tests/fetch.py", line 146, in test_gitfetch_premirror3
    subprocess.check_output("git clone %s %s 2> /dev/null" % (realurl, self.sourcedir), shell=True)


Both unittest.skipIf and subprocess.check_output are new in python 2.7

http://autobuilder.yoctoproject.org:8011/builders/nightly/builds/109/steps/Running%20bitbake-selftest/logs/stdio

http://autobuilder.yoctoproject.org:8011/builders/nightly/builds/110/steps/Running%20bitbake-selftest/logs/stdio
Comment 2 Stefan Stanacar 2013-10-07 13:33:00 UTC
Marking as Verified.