Hello,
I see 3 test failures in t4202:
expecting success:
test_patch_id_file_order irrelevant --stable --stableAlready on 'same' cmp: cannot open patch-id_ordered-ordered-order---stable-irrelevant not ok 7 - file order is irrelevant with --stable # # test_patch_id_file_order irrelevant --stable --stable #
expecting success:
test_patch_id_file_order relevant --unstable --unstableAlready on 'same' cmp: cannot open patch-id_ordered-ordered-order---unstable-relevant [..]
expecting success:
test_config patchid.stable true &&
test_patch_id irrelevant patchid.stable=trueAlready on 'same' cmp: cannot open patch-id_ordered-ordered-order-patchid.stable=true-irrelevant not ok 10 - patchid.stable = true is stable # # test_config patchid.stable true && # test_patch_id irrelevant patchid.stable=true # [..]
expecting success:
test_config patchid.stable false &&
test_patch_id irrelevant patchid.stable=false--stable --stableAlready on 'same' cmp: cannot open patch-id_ordered-ordered-order-patchid.stable=false--stable-irrelevant not ok 13 - --stable overrides patchid.stable = false # # test_config patchid.stable false && # test_patch_id irrelevant patchid.stable=false--stable --stable #
Please notice the double "ordered"! From my point of view there is a problem in the function calc_patch_id() which changes the variable $name and causes the test to fail.
Essentially it's working like this: <snip> #!/bin/bash
func1() {
name=${1}
echo "func1 name=$name"
}func2() {
name=${1}
echo "func2 name=$name"
func1 "ordered-$name"
echo "func2 again name=$name"
}func2 foo <snip> which prints in bash, ksh88 and ksh93 on Linux and AIX the same func2 name=foo func1 name=ordered-foo func2 again name=ordered-foo
I wonder if those 3 tests ever worked... and why? :-)
A suggested patch would be to rename $name inside calc_patch_id into something else except $name... e.g. $pname.
Armin