summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Niebel <Markus.Niebel@ew.tq-group.com>2023-08-21 12:15:44 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-08-29 09:41:07 +0100
commit4a56d0cc9350d3a4b028077f534a6ffda412c006 (patch)
treea03e25011d9e256bd6fb4c77afdaf5f9b5651456
parent8cd5d264af4c346730531cb98ae945ab862dbd69 (diff)
downloadpoky-4a56d0cc9350d3a4b028077f534a6ffda412c006.tar.gz
oeqa: wic: Add test for --no-table option
Add basic test for the --no-table wic part option. (From OE-Core rev: ad89d7e6039da2d79c1d55fe7fdc8bb9c235dacf) Signed-off-by: Markus Niebel <Markus.Niebel@ew.tq-group.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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):