Skip to content

Commit 5bcff7c

Browse files
committed
Make test.sh run full comparison test file for base/new modes
1 parent a2e48cb commit 5bcff7c

1 file changed

Lines changed: 10 additions & 14 deletions

File tree

test.sh

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
11
#!/bin/sh
2-
# POSIX shell script for Olympus test runner.
3-
# Usage:
4-
# ./test.sh base
5-
# ./test.sh new
6-
# This script runs only the regression test and does not install packages.
72
set -eu
83

94
if [ "$#" -ne 1 ]; then
10-
printf 'Usage: %s [base|new]\n' "$0" >&2
11-
exit 2
5+
echo "Usage: $0 {base|new}"
6+
exit 1
127
fi
138

149
case "$1" in
15-
base|new)
10+
base)
11+
poetry run pytest -q tests/datetime/test_comparison.py
1612
;;
17-
*)
18-
printf 'Invalid argument: %s\n' "$1" >&2
19-
printf 'Usage: %s [base|new]\n' "$0" >&2
20-
exit 2
13+
new)
14+
poetry run pytest -q tests/datetime/test_comparison.py
15+
;;
16+
*)
17+
echo "Usage: $0 {base|new}"
18+
exit 1
2119
;;
2220
esac
2321

24-
poetry run pytest -q tests/datetime/test_comparison.py::test_less_than_with_fold
25-
exit $?

0 commit comments

Comments
 (0)