diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-03-26 20:15:19 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-01 08:14:57 +0100 |
commit | a7f22bd46f169942f5678532556729f98912647c (patch) | |
tree | 501577cd91b06c09c6e49235b278621aa4aaea30 /meta/lib | |
parent | 6b80c13f7a82a312a3b981de5a56c66466ba1fac (diff) | |
download | poky-a7f22bd46f169942f5678532556729f98912647c.tar.gz |
oe-selftest: add kickstart_parser test case
Added test_kickstart_parser test case to test wks parser
options not yet covered by tests.
[YOCTO #10618]
(From OE-Core rev: 36779a95f2e1e2c0d94ba81d30c8b1fc9dd161e4)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/selftest/wic.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index 2af3bf5306..f0d9dd90e5 100644 --- a/meta/lib/oeqa/selftest/wic.py +++ b/meta/lib/oeqa/selftest/wic.py | |||
@@ -736,3 +736,15 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r | |||
736 | wksname = os.path.splitext(os.path.basename(wks.name))[0] | 736 | wksname = os.path.splitext(os.path.basename(wks.name))[0] |
737 | out = glob(self.resultdir + "%s-*direct" % wksname) | 737 | out = glob(self.resultdir + "%s-*direct" % wksname) |
738 | self.assertEqual(1, len(out)) | 738 | self.assertEqual(1, len(out)) |
739 | |||
740 | def test_kickstart_parser(self): | ||
741 | """Test wks parser options""" | ||
742 | with NamedTemporaryFile("w", suffix=".wks") as wks: | ||
743 | wks.writelines(['part / --fstype ext3 --source rootfs --system-id 0xFF '\ | ||
744 | '--overhead-factor 1.2 --size 100k\n']) | ||
745 | wks.flush() | ||
746 | cmd = "wic create %s -e core-image-minimal -o %s" % (wks.name, self.resultdir) | ||
747 | self.assertEqual(0, runCmd(cmd).status) | ||
748 | wksname = os.path.splitext(os.path.basename(wks.name))[0] | ||
749 | out = glob(self.resultdir + "%s-*direct" % wksname) | ||
750 | self.assertEqual(1, len(out)) | ||