Skip to content

Commit

Permalink
Fix some test cases where the resulting default index is wrong
Browse files Browse the repository at this point in the history
Fix two issues with tests where removing a kernel or adding a boot entry
at a user specified index had the wrong default index selected in the
expected output.

One of these issues is the --set-index test cases for grub 1, which
expect --make-default is implied where it should not be.

The third is a removal test, where the default index in the result data
is off by one when we've removed 2 entries keyed off of the kernel
filesystem path.

This change causes these test cases to fail.

Resolves: rhbz#1285601
  • Loading branch information
kellinm authored and vathpela committed Dec 16, 2016
1 parent 868dd98 commit 4e361ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/results/add/g1.17
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# kernel /vmlinuz-version ro root=/dev/sda1
# initrd /initrd-version.img
#boot=/dev/hda
default=1
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.7-2)
Expand Down
2 changes: 1 addition & 1 deletion test/results/add/g1.9
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# kernel /vmlinuz-version ro root=/dev/sda1
# initrd /initrd-version.img
#boot=/dev/hda
default=2
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.7-2)
Expand Down
2 changes: 1 addition & 1 deletion test/results/remove/g7.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
default=1
default=0
timeout=10
splashimage=(hd0,5)/boot/grub/splash.xpm.gz

Expand Down

0 comments on commit 4e361ff

Please sign in to comment.