Skip to content

Commit

Permalink
Merge pull request os-autoinst#2426 from mimi1vx/debug_08
Browse files Browse the repository at this point in the history
Check uncovered debug message in t/08-autotest.t
  • Loading branch information
mergify[bot] committed Jan 11, 2024
2 parents 6315477 + 97b86c1 commit a45f826
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 a45f826

Please sign in to comment.