diff options
Diffstat (limited to 'meta/lib/oeqa/sdk/cases/buildcpio.py')
-rw-r--r-- | meta/lib/oeqa/sdk/cases/buildcpio.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/meta/lib/oeqa/sdk/cases/buildcpio.py b/meta/lib/oeqa/sdk/cases/buildcpio.py index 33b946fc16..51003b19cd 100644 --- a/meta/lib/oeqa/sdk/cases/buildcpio.py +++ b/meta/lib/oeqa/sdk/cases/buildcpio.py | |||
@@ -19,10 +19,10 @@ class BuildCpioTest(OESDKTestCase): | |||
19 | """ | 19 | """ |
20 | def test_cpio(self): | 20 | def test_cpio(self): |
21 | with tempfile.TemporaryDirectory(prefix="cpio-", dir=self.tc.sdk_dir) as testdir: | 21 | with tempfile.TemporaryDirectory(prefix="cpio-", dir=self.tc.sdk_dir) as testdir: |
22 | tarball = self.fetch(testdir, self.td["DL_DIR"], "https://ftp.gnu.org/gnu/cpio/cpio-2.14.tar.gz") | 22 | tarball = self.fetch(testdir, self.td["DL_DIR"], "https://ftp.gnu.org/gnu/cpio/cpio-2.15.tar.gz") |
23 | 23 | ||
24 | dirs = {} | 24 | dirs = {} |
25 | dirs["source"] = os.path.join(testdir, "cpio-2.14") | 25 | dirs["source"] = os.path.join(testdir, "cpio-2.15") |
26 | dirs["build"] = os.path.join(testdir, "build") | 26 | dirs["build"] = os.path.join(testdir, "build") |
27 | dirs["install"] = os.path.join(testdir, "install") | 27 | dirs["install"] = os.path.join(testdir, "install") |
28 | 28 | ||
@@ -30,8 +30,7 @@ class BuildCpioTest(OESDKTestCase): | |||
30 | self.assertTrue(os.path.isdir(dirs["source"])) | 30 | self.assertTrue(os.path.isdir(dirs["source"])) |
31 | os.makedirs(dirs["build"]) | 31 | os.makedirs(dirs["build"]) |
32 | 32 | ||
33 | self._run("sed -i -e '/char.*program_name/d' {source}/src/global.c".format(**dirs)) | 33 | self._run("cd {build} && {source}/configure $CONFIGURE_FLAGS".format(**dirs)) |
34 | self._run("cd {build} && {source}/configure --disable-maintainer-mode $CONFIGURE_FLAGS".format(**dirs)) | ||
35 | self._run("cd {build} && make -j".format(**dirs)) | 34 | self._run("cd {build} && make -j".format(**dirs)) |
36 | self._run("cd {build} && make install DESTDIR={install}".format(**dirs)) | 35 | self._run("cd {build} && make install DESTDIR={install}".format(**dirs)) |
37 | 36 | ||