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-03-31 12:12:06 +0100 |
commit | 36779a95f2e1e2c0d94ba81d30c8b1fc9dd161e4 (patch) | |
tree | 6bd6d0feed668357a5307127aab40f6fda6714cf /meta/lib/oeqa/selftest | |
parent | 44e9406ea6e3263d2fb95e9d534a21f74f318480 (diff) | |
download | openembedded-core-36779a95f2e1e2c0d94ba81d30c8b1fc9dd161e4.tar.gz openembedded-core-36779a95f2e1e2c0d94ba81d30c8b1fc9dd161e4.tar.bz2 openembedded-core-36779a95f2e1e2c0d94ba81d30c8b1fc9dd161e4.zip |
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]
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'meta/lib/oeqa/selftest')
-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 wksname = os.path.splitext(os.path.basename(wks.name))[0] out = glob(self.resultdir + "%s-*direct" % wksname) self.assertEqual(1, len(out)) + + def test_kickstart_parser(self): + """Test wks parser options""" + with NamedTemporaryFile("w", suffix=".wks") as wks: + wks.writelines(['part / --fstype ext3 --source rootfs --system-id 0xFF '\ + '--overhead-factor 1.2 --size 100k\n']) + wks.flush() + cmd = "wic create %s -e core-image-minimal -o %s" % (wks.name, self.resultdir) + self.assertEqual(0, runCmd(cmd).status) + wksname = os.path.splitext(os.path.basename(wks.name))[0] + out = glob(self.resultdir + "%s-*direct" % wksname) + self.assertEqual(1, len(out)) |