Skip to content

Commit 569e150

Browse files
authored
Merge pull request #12676 from Alizter/push-ovvrukpvpymm
chore: update test to have better syntax error
2 parents 172d872 + 601301f commit 569e150

File tree

1 file changed

+3
-2
lines changed
  • test/blackbox-tests/test-cases/cram

1 file changed

+3
-2
lines changed

test/blackbox-tests/test-cases/cram/gh4230.t

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ Syntax error inside a cram command
55
> EOF
66

77
$ cat >t1.t <<EOF
8-
> $ foo-bar() { true; }
8+
> $ if then fi
99
> EOF
1010

11-
$ dune runtest --auto-promote 2>&1 | sed -E -e 's/.+\.sh:/$SUBTEST.sh:/' -e 's/cd.*\&\&.*.sh/cd $DIR \&\& $SUBTEST.sh/'
11+
$ dune runtest --auto-promote
1212
File "t1.t", line 1, characters 0-0:
1313
Error: Files _build/default/t1.t and _build/default/t1.t.corrected differ.
1414
Promoting _build/default/t1.t.corrected to t1.t.
15+
[1]
1516

1617
$ cat >t1.t <<EOF
1718
> $ exit 1

0 commit comments

Comments
 (0)