mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
selftest/wic: test wic rm with -r flag
selftest to make sure wic rm with -r flag for ext partition could remove directory and all its content. (From OE-Core rev: d7ccbb393a71501424b7c0d4c1d78e4bac1ecccf) Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
3555766ea8
commit
b8c34f9a24
@@ -1025,3 +1025,10 @@ class Wic2(WicTestCase):
|
||||
# check if it's removed
|
||||
result = runCmd("wic ls %s:2/etc/ -n %s" % (images[0], sysroot))
|
||||
self.assertTrue('fstab' not in [line.split()[-1] for line in result.output.split('\n') if line])
|
||||
|
||||
# remove non-empty directory
|
||||
runCmd("wic rm -r %s:2/etc/ -n %s" % (images[0], sysroot))
|
||||
|
||||
# check if it's removed
|
||||
result = runCmd("wic ls %s:2/ -n %s" % (images[0], sysroot))
|
||||
self.assertTrue('etc' not in [line.split()[-1] for line in result.output.split('\n') if line])
|
||||
|
||||
Reference in New Issue
Block a user