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 30, 2025
1 parent bce298f commit 80d4ef0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/console/snapper_zypp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ 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}'");
record_info("DEBUG", script_output("snapper ls"));
return script_output("snapper ls | awk 'NR>1 {print $snapshot_id}' | tail -n1");
}

sub run_zypper_cmd {
Expand Down

0 comments on commit 80d4ef0

Please sign in to comment.