File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.
72set -eu
83
94if [ " $# " -ne 1 ]; then
10- printf ' Usage: %s [ base|new]\n ' " $0 " >&2
11- exit 2
5+ echo " Usage: $0 { base|new} "
6+ exit 1
127fi
138
149case " $1 " in
15- base|new)
10+ base)
11+ # Run the comparison file but exclude the new regression test that
12+ # doesn't exist in the base commit.
13+ poetry run pytest -q tests/datetime/test_comparison.py -k " not less_than_with_fold"
1614 ;;
17- * )
18- printf ' Invalid argument: %s\n' " $1 " >&2
19- printf ' Usage: %s [base|new]\n' " $0 " >&2
20- exit 2
15+ new)
16+ # Run the full file including the new regression test.
17+ poetry run pytest -q tests/datetime/test_comparison.py
18+ ;;
19+ * )
20+ echo " Usage: $0 {base|new}"
21+ exit 1
2122 ;;
2223esac
2324
24- poetry run pytest -q tests/datetime/test_comparison.py::test_less_than_with_fold
25- exit $?
You can’t perform that action at this time.
0 commit comments