Skip to content

Commit

Permalink
Check uncovered debug message in t/08-autotest.t
Browse files Browse the repository at this point in the history
  • Loading branch information
mimi1vx committed Jan 10, 2024
1 parent 7cf245e commit 97b86c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/08-autotest.t
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,11 @@ subtest 'python with bad run method' => sub {
my $targs = OpenQA::Test::RunArgs->new();
$targs->{data} = 23;

my @msg;
$mock_bmwqemu->mock(diag => sub ($message) { push @msg, $message });
autotest::loadtest('tests/pythontest_with_bad_run_fn.py');
is $msg[0], 'scheduling pythontest_with_bad_run_fn tests/pythontest_with_bad_run_fn.py', 'debug message from autotest';
$mock_bmwqemu->unmock('diag');

loadtest 'pythontest_with_bad_run_fn.py';
my $p1 = $autotest::tests{'tests-pythontest_with_bad_run_fn'};
Expand Down

0 comments on commit 97b86c1

Please sign in to comment.