]> git.ipfire.org Git - thirdparty/coreutils.git/commit
test: avoid FP in chroot-credentials.sh for different group list order
authorBernhard Voelker <mail@bernhard-voelker.de>
Sat, 20 Oct 2018 00:00:11 +0000 (02:00 +0200)
committerBernhard Voelker <mail@bernhard-voelker.de>
Sun, 21 Oct 2018 12:55:51 +0000 (14:55 +0200)
commit6bc89f5f85fd3877d8f46724bbf4baba607f2cb0
tree6e732e6491d1e26ccf46b256bdd3e27ad6783dc8
parent8ea92f2a1d76b224624e9770444de49c58c3cd33
test: avoid FP in chroot-credentials.sh for different group list order

On my openSUSE:Tumbleweed system, I get a false positive test failure
in the above 'check-root' test because the group lists inside and
outside the chroot have a different order:

  ++ chroot --userspec=berny / id -G
  ++ id -G berny
  + test '100 454 457 480 492' = '100 480 492 457 454'
  + fail=1

* tests/misc/chroot-credentials.sh (num_sort): Add function to sort
group lists, and use it in the test cases which test multiple groups.
tests/misc/chroot-credentials.sh