diff options
author | Joshua Lock <joshua.g.lock@intel.com> | 2017-03-27 11:21:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-27 20:22:51 +0100 |
commit | 58a02e73d0a6b110d96e94033e1fdf634b42ccec (patch) | |
tree | 1d13cb5f9eaef7c999f16ac422b6d6c386e74a3a /meta/lib/oeqa/selftest/runtime-test.py | |
parent | 8fdbf9fcf28569de42c2c8d902b93a3ff4d28219 (diff) | |
download | poky-58a02e73d0a6b110d96e94033e1fdf634b42ccec.tar.gz |
oeqa/selftest: don't use cleanall in selftests
* devtool: oeqa.selftest.devtool.DevtoolTests is taking 4 or more hours on the
autobuilder because the cleanall call deletes the tarball of the kernel
source, forcing a large clone which is especially long on an NFS mount.
The cleanall invocation isn't really required here and switching to clean
instead should avoid hours of re-cloning the same repository each time we
run oe-selftest on the autobuilder.
* buildoptions: We only need to ensure the first image isn't an incremental
image, clean will suffice here.
* runtime-test: no need to clean up the artefacts generated during the test,
let's leave that to a higher level process rather than using the cleanall
hammer.
(From OE-Core rev: 9c948d3de08f158387e08a17cdc0cedc7d26bb54)
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/runtime-test.py')
-rw-r--r-- | meta/lib/oeqa/selftest/runtime-test.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/meta/lib/oeqa/selftest/runtime-test.py b/meta/lib/oeqa/selftest/runtime-test.py index ea31c18229..e498d046cf 100644 --- a/meta/lib/oeqa/selftest/runtime-test.py +++ b/meta/lib/oeqa/selftest/runtime-test.py | |||
@@ -193,8 +193,6 @@ postinst-delayed-t \ | |||
193 | present on rootfs dir. | 193 | present on rootfs dir. |
194 | 4. Boot the image created on qemu and verify that the file | 194 | 4. Boot the image created on qemu and verify that the file |
195 | created by postinst_boot recipe is present on image. | 195 | created by postinst_boot recipe is present on image. |
196 | 5. Clean the packages and image created to test with | ||
197 | different package managers | ||
198 | Expected: The files are successfully created during rootfs and boot | 196 | Expected: The files are successfully created during rootfs and boot |
199 | time for 3 different package managers: rpm,ipk,deb and | 197 | time for 3 different package managers: rpm,ipk,deb and |
200 | for initialization managers: sysvinit and systemd. | 198 | for initialization managers: sysvinit and systemd. |
@@ -237,7 +235,3 @@ postinst-delayed-t \ | |||
237 | sshargs = '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' | 235 | sshargs = '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' |
238 | result = runCmd('ssh %s root@%s %s' % (sshargs, qemu.ip, testcommand)) | 236 | result = runCmd('ssh %s root@%s %s' % (sshargs, qemu.ip, testcommand)) |
239 | self.assertEqual(result.status, 0, 'File %s was not created at firts boot'% fileboot_name) | 237 | self.assertEqual(result.status, 0, 'File %s was not created at firts boot'% fileboot_name) |
240 | |||
241 | #Step 5 | ||
242 | bitbake(' %s %s -c cleanall' % (rootfs_pkg, boot_pkg)) | ||
243 | bitbake('core-image-minimal -c cleanall') | ||