commit f8d01951c19999cc7d089b363cf6ab4a25b887b9 from: Stefan Sperling via: Thomas Adam date: Sun May 05 09:50:52 2024 UTC prevent spurious failure of gotd test_clone_basic_access_denied Filter output for a single error message to avoid spurious test failures which result from output appearing in an unexpected order: test_clone_basic_access_denied --- /tmp/gotd-test-clone_basic_access_denied-IkTXPlX5FH/stderr.expected ... +++ /tmp/gotd-test-clone_basic_access_denied-IkTXPlX5FH/stderr ... @@ -1,2 +1,2 @@ -got-fetch-pack: test-repo: Permission denied got: fetch failed +got-fetch-pack: test-repo: Permission denied test failed; leaving test data in /tmp/gotd-test-clone_basic_access_denied-IkTXPlX5FH commit - ca7dfc7246a71d418d456bc820b33ecb5862d082 commit + f8d01951c19999cc7d089b363cf6ab4a25b887b9 blob - 02ac9f5c39831d35acbe6f1e5085754a83f77366 blob + f1eaa263ded2de0987d31ec852c1c021a68df9cc --- regress/gotd/repo_read_access_denied.sh +++ regress/gotd/repo_read_access_denied.sh @@ -30,12 +30,11 @@ test_clone_basic_access_denied() { test_done "$testroot" "1" return 1 fi - grep -v ^gotsh: $testroot/stderr.raw > $testroot/stderr + grep ^got-fetch-pack: $testroot/stderr.raw > $testroot/stderr # Verify that the clone operation failed. echo 'got-fetch-pack: test-repo: Permission denied' \ > $testroot/stderr.expected - echo 'got: fetch failed' >> $testroot/stderr.expected cmp -s $testroot/stderr.expected $testroot/stderr ret=$? if [ $ret -ne 0 ]; then