11# Must be sourced into the main journey test
22
3+
4+ function remove-thread-id {
5+ sed -E ' s/ \([0-9]+\)//'
6+ }
7+
38if test " $kind " = " max" || test " $kind " = " max-pure" ; then
49title " Porcelain ${kind} "
510(
@@ -8,21 +13,24 @@ title "Porcelain ${kind}"
813 (with " the --quiet option set"
914 it " fails as expected" && {
1015 WITH_SNAPSHOT=" $snapshot /expected-failure" \
11- expect_run_sh 101 " $exe -q panic"
16+ SNAPSHOT_FILTER=remove-thread-id \
17+ expect_run_sh 0 " $exe -q panic"
1218 }
1319 )
1420
1521 (with " NO --quiet option set"
1622 it " fails as expected" && {
1723 WITH_SNAPSHOT=" $snapshot /expected-failure-in-thread" \
18- expect_run_sh 101 " $exe panic"
24+ SNAPSHOT_FILTER=remove-thread-id \
25+ expect_run_sh 0 " $exe panic"
1926 }
2027 )
2128 (not_on_ci # due to different TTY settings, the output differs, it's OK for now
2229 (with " progress option set"
2330 it " fails as expected" && {
2431 WITH_SNAPSHOT=" $snapshot /expected-failure-in-thread-with-progress" \
25- expect_run_sh 101 " $exe --progress panic"
32+ SNAPSHOT_FILTER=remove-thread-id \
33+ expect_run_sh 0 " $exe --progress panic"
2634 }
2735 )
2836 )
0 commit comments