Skip to content

Commit

Permalink
Skip test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Jan 10, 2024
1 parent f318f79 commit 4d13ef9
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,18 @@ else
exit 1
fi

echo -e "${MAGENTA}Does \`spin run foo.py\` warn that \`spin run python foo.py\` is correct?${NORMAL}"
OUT=$( touch __foo.py && spin run __foo.py || true )
rm __foo.py
if [[ $OUT == *"Did you mean to call"* ]]; then
echo "Yes"
else
echo "No, output is: $OUT"
exit 1
if [[ $PLATFORM == linux || $PLATFORM == darwin ]]; then
# Detecting whether a file is executable is not that easy on Windows,
# as it seems to take into consideration whether that file is associated as an executable.
echo -e "${MAGENTA}Does \`spin run foo.py\` warn that \`spin run python foo.py\` is correct?${NORMAL}"
OUT=$( touch __foo.py && spin run __foo.py || true )
rm __foo.py
if [[ $OUT == *"Did you mean to call"* ]]; then
echo "Yes"
else
echo "No, output is: $OUT"
exit 1
fi
fi

prun spin test
Expand Down

0 comments on commit 4d13ef9

Please sign in to comment.