summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/wic.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/wic.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/wic.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py
index a3c6deb5aa..aa61349ed1 100644
--- a/meta/lib/oeqa/selftest/cases/wic.py
+++ b/meta/lib/oeqa/selftest/cases/wic.py
@@ -731,6 +731,23 @@ part /etc --source rootfs --fstype=ext4 --change-directory=etc
731 size = os.path.getsize(wicout[0]) 731 size = os.path.getsize(wicout[0])
732 self.assertTrue(size > extraspace) 732 self.assertTrue(size > extraspace)
733 733
734 def test_no_table(self):
735 """Test --no-table wks option."""
736 wks_file = 'temp.wks'
737
738 # Absolute argument.
739 with open(wks_file, 'w') as wks:
740 wks.write("part testspace --no-table --fixed-size 16k --offset 4080k")
741 runCmd("wic create %s --image-name core-image-minimal -o %s" % (wks_file, self.resultdir))
742
743 wicout = glob(os.path.join(self.resultdir, "*.*"))
744
745 self.assertEqual(1, len(wicout))
746 size = os.path.getsize(wicout[0])
747 self.assertEqual(size, 4 * 1024 * 1024)
748
749 os.remove(wks_file)
750
734class Wic2(WicTestCase): 751class Wic2(WicTestCase):
735 752
736 def test_bmap_short(self): 753 def test_bmap_short(self):