Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addes test case to capture ebizzy workload in perf top tool #2796

Merged

Conversation

Krishan-Saraswat
Copy link
Contributor

To run this test, we need to follow this flow
start_ebizzy_workload -> run workload test -> stop_ebizzy_workload.

$avocado run --max-parallel-tasks=1 ebizzy_workload.py:test_start_ebizzy_workload
$ avocado run --max-parallel-tasks=1 perf_top.py:test_workload_output
$avocado run --max-parallel-tasks=1 ebizzy_workload.py:test_stop_ebizzy_workload

To run this test, we need to follow this flow
start_ebizzy_workload -> run workload test -> stop_ebizzy_workload.

Signed-off-by: Krishan Gopal Saraswat <[email protected]>
@PraveenPenguin PraveenPenguin merged commit 9328bcb into avocado-framework-tests:master Apr 15, 2024
3 checks passed
@sacsant
Copy link
Contributor

sacsant commented Apr 15, 2024

If installation of any packages required by this test fails, this teardown function may error out since temp_file variable is defined after package install code. Ideally there should a check in teardown for if symbol/variable is available. Alternately the definition of this variable can be moved to the top of setup()

def tearDown(self):
if os.path.isfile(self.temp_file):
process.system('rm -f %s' % self.temp_file)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants