Skip to content

Commit c0aa65a

Browse files
committed
[GR-20446] Check whether there is unexpected output to stderr in specs on CI
PullRequest: truffleruby/3643
2 parents 3baeff1 + 121efdc commit c0aa65a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/truffle/integration/no_extra_output.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,22 @@ echo "Test loading many standard libraries"
3939

4040
$RUBY_BIN -w --experimental-options --lazy-default=false test/truffle/integration/no_extra_output/all_stdlibs.rb 1>temp.txt 2>&1
4141
check $?
42+
43+
echo "Test of the unexpected output to stderr."
44+
echo "To ensure there are no unexpected warnings for instance."
45+
46+
# There is linter extra output on darwin-amd64 (GR-44301)
47+
platform="$(uname -s)-$(uname -m)"
48+
if [[ "$platform" == "Darwin-x86_64" ]]; then
49+
echo '[GR-44301] Skipping test on darwin-amd64 as it fails'
50+
else
51+
jt --silent test specs fast --error-output stderr 2>stderr.txt
52+
if [ -s stderr.txt ]; then
53+
echo Extra output:
54+
cat stderr.txt
55+
exit 1
56+
else
57+
echo No extra output
58+
rm -f stderr.txt
59+
fi
60+
fi

0 commit comments

Comments
 (0)