Bug 13237 - [2.7 M3 RC1][OE-selftest][Opensuseleap 15.0][Public AB]:"test_wic_cp_ext" failing for Opensuseleap 15.0.
Summary: [2.7 M3 RC1][OE-selftest][Opensuseleap 15.0][Public AB]:"test_wic_cp_ext" fai...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: oe-core other (show other bugs)
Version: 2.7
Hardware: x86 other
: Medium+ normal
Target Milestone: 2.7 M4
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-03-26 03:55 UTC by Sangeeta Jain
Modified: 2019-04-04 21:58 UTC (History)
1 user (show)

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


Attachments
Test logs from public Autobuilder (42.39 KB, application/json)
2019-03-26 03:55 UTC, Sangeeta Jain
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sangeeta Jain 2019-03-26 03:55:02 UTC
Created attachment 4448 [details]
Test logs from public Autobuilder

Following test case failed in Public autobuilder:

testseries | result_id : oe-selftest | oeselftest_opensuseleap-15.0_qemux86-64_20190320011444
    wic.Wic2.test_wic_cp_ext

"wic.Wic2.test_wic_cp_ext": {
                "log": "testtools.testresult.real._StringException: Traceback (most recent call last):\n  
				File \"/home/pokybuild/yocto-worker/oe-selftest/build/meta/lib/oeqa/selftest/cases/wic.py\",
				line 1020, in test_wic_cp_ext\n   
				self.assertEqual(newdirs.difference(dirs), set([os.path.basename(testfile.name)]))\n  
				File \"/usr/lib64/python3.6/unittest/case.py\", line 829, in assertEqual\n   
				assertion_func(first, second, msg=msg)\n  
				File \"/usr/lib64/python3.6/unittest/case.py\", line 1082, in assertSetEqual\n   
				self.fail(self._formatMessage(msg, standardMsg))\n  
				File \"/usr/lib64/python3.6/unittest/case.py\", line 670, in fail\n    
				raise self.failureException(msg)\nAssertionError: Items in the second set but not the first:\n'tmpj6hrnagn.wic-cp'\n\n",
                "status": "FAILED"
            },
Comment 1 Richard Purdie 2019-04-03 09:49:00 UTC
This consistently fails only on opensuse150
Comment 2 Richard Purdie 2019-04-03 10:06:46 UTC
Reproduced outside OEQA with:

(add meta-selftest to layers, build core-image-minimal)

wic create wictestdisk --image-name=core-image-minimal -D -o rptemp
touch foo.bar
wic cp foo.bar rptemp/wictestdisk-201904031001-sda.direct:2/ -n /home/rpurdie
/poky/build/build/tmp/work/core2-64-poky-linux/wic-tools/1.0-r0/recipe-sysroot-native/
wic ls rptemp/wictestdisk-201904031001-sda.direct:2/ -n /home/rpurdie/poky/build/build/tmp/work/core2-64-poky-linux/wic-tools/1.0-r0/recipe-sysroot-native/

and the file isn't listed.
Comment 3 Richard Purdie 2019-04-03 10:19:47 UTC
Reverting http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=89d4a8df074598cfb3a76e41db7c45d845afd961 fixes this.

/bin/sh is bash on the machine in question.
Comment 4 Richard Purdie 2019-04-03 11:56:05 UTC
Due to a missing \n at the end