Unable to rerun ubuntu_lttng_smoke_test / ubuntu_sysdig_smoke_test on the same system due to module removed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Po-Hsu Lin |
Bug Description
In these two tests, the DKMS module will be unloaded and package will be removed with cleanup() in the end of the test.
This is for our manually provisioned system (bug 1798295), and it's also a good practice to keep the system clean after the test.
However, as we only run setup() once if the test version is not bumped, when you try to restart these tests on the same system without removing autotest/
Solution for this is to move code in setup() into initialize(), which is guaranteed to be executed on every run.
This is the workflow for a test:
1. initialize()
2. setup()
3. run_once()
4. cleanup()
With a second run immediately after the first one:
5. initialize()
6. run_once()
7. cleanup()
tags: | added: ubuntu-lttng-smoke-test ubuntu-sysdig-smoke-test |
Changed in ubuntu-kernel-tests: | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
status: | New → In Progress |
description: | updated |
https:/ /kernel. ubuntu. com/git/ ubuntu/ autotest- client- tests.git/ commit/ ?id=ca3878e0eca c7a284ad6ee0175 db72e1d9cefa9d