diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-01-24 15:43:56 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-31 14:12:47 +0000 |
commit | c1be1161cf555727aa56ee2109ee77f420f67c9f (patch) | |
tree | d75232a7767e0d3e0497631fd2f00193ce4b3eb6 /meta/lib | |
parent | 0f205aed90edd90fcba0a565a6cadfe96339b410 (diff) | |
download | openembedded-core-c1be1161cf555727aa56ee2109ee77f420f67c9f.tar.gz openembedded-core-c1be1161cf555727aa56ee2109ee77f420f67c9f.tar.bz2 openembedded-core-c1be1161cf555727aa56ee2109ee77f420f67c9f.zip |
selftest: wic: test default output directory
As tests now explicitly specify output directory we don't
need test_alternate_output_dir test case. However, we need
to test wic output to default output location.
Removed test_alternate_output_dir test case.
Added test_default_output_dir test case.
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 | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index 355a69ca1c..0a78659bb1 100644 --- a/meta/lib/oeqa/selftest/wic.py +++ b/meta/lib/oeqa/selftest/wic.py @@ -36,7 +36,6 @@ from oeqa.utils.decorators import testcase class Wic(oeSelfTest): """Wic test class.""" - alternate_resultdir = "/var/tmp/wic/build/alt/" resultdir = "/var/tmp/wic.oe-selftest/" image_is_ready = False wicenv_cache = {} @@ -202,20 +201,13 @@ class Wic(oeSelfTest): self.assertEqual(1, len(glob(self.resultdir + "sdimage-bootpart-*direct"))) @testcase(1562) - def test_alternate_output_dir(self): - """Test alternate output directory""" - self.assertEqual(0, runCmd("wic create directdisk " - "-e core-image-minimal " - "-o %s" - % self.alternate_resultdir).status) - self.assertEqual(1, len(glob(self.alternate_resultdir + - "build/directdisk-*.direct"))) - self.assertEqual(0, runCmd("wic create mkefidisk -e " - "core-image-minimal " - "--outdir=%s" - % self.alternate_resultdir).status) - self.assertEqual(1, len(glob(self.alternate_resultdir + - "build/mkefidisk-*direct"))) + def test_default_output_dir(self): + """Test default output location""" + for fname in glob("directdisk-*.direct"): + os.remove(fname) + cmd = "wic create directdisk -e core-image-minimal" + self.assertEqual(0, runCmd(cmd).status) + self.assertEqual(1, len(glob("directdisk-*.direct"))) @testcase(1212) def test_build_artifacts(self): |