Skip to content

Commit

Permalink
Fix snapper_zypp test
Browse files Browse the repository at this point in the history
  • Loading branch information
cedvid committed Jan 29, 2025
1 parent bce298f commit 7ebde0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/console/snapper_zypp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ use Test::Assert 'assert_equals';

sub get_snapshot_id {
my $snapshot_id = is_sle("<=12-SP5") ? '$3' : '$1';
return script_output("snapper ls | awk 'END {print $snapshot_id}'");
script_run("snapper ls > snapper_ls_output");
record_info("DEBUG", "script_output('cat snapper_ls_output')");
return script_run("cat snapper_ls_output | awk 'END {print $snapshot_id}'");
}

sub run_zypper_cmd {
Expand Down

0 comments on commit 7ebde0b

Please sign in to comment.