Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
manfredi committed Aug 29, 2023
1 parent ceef00f commit 2038e25
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/yam/agama/agama.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,19 @@ sub run {
my $test = get_required_var('AGAMA_TEST');

assert_script_run("playwright test --trace on --project chromium --config /usr/share/e2e-agama-playwright tests/" . $test . ".spec.ts", timeout => 1200);
upload_agama_traces();
enter_cmd 'reboot';
}

sub post_fail_hook {
my ($self) = shift;
$self->SUPER::post_fail_hook;
upload_agama_traces();
}

sub upload_agama_traces {
assert_script_run("tar cvzf /tmp/traces.tar.gz test-results/");
upload_logs("/tmp/traces.tar.gz");
enter_cmd 'reboot';
}

1;

0 comments on commit 2038e25

Please sign in to comment.