diff options
-rw-r--r-- | meta/lib/oeqa/selftest/cases/wic.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py index ea75300406..0c03b4b02d 100644 --- a/meta/lib/oeqa/selftest/cases/wic.py +++ b/meta/lib/oeqa/selftest/cases/wic.py | |||
@@ -1025,3 +1025,10 @@ class Wic2(WicTestCase): | |||
1025 | # check if it's removed | 1025 | # check if it's removed |
1026 | result = runCmd("wic ls %s:2/etc/ -n %s" % (images[0], sysroot)) | 1026 | result = runCmd("wic ls %s:2/etc/ -n %s" % (images[0], sysroot)) |
1027 | self.assertTrue('fstab' not in [line.split()[-1] for line in result.output.split('\n') if line]) | 1027 | self.assertTrue('fstab' not in [line.split()[-1] for line in result.output.split('\n') if line]) |
1028 | |||
1029 | # remove non-empty directory | ||
1030 | runCmd("wic rm -r %s:2/etc/ -n %s" % (images[0], sysroot)) | ||
1031 | |||
1032 | # check if it's removed | ||
1033 | result = runCmd("wic ls %s:2/ -n %s" % (images[0], sysroot)) | ||
1034 | self.assertTrue('etc' not in [line.split()[-1] for line in result.output.split('\n') if line]) | ||