Add Shipd test runner
This commit is contained in:
parent
2ac89889f4
commit
58c4c61b71
1 changed files with 29 additions and 0 deletions
29
test.sh
Normal file
29
test.sh
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
OUTPUT=""
|
||||
MODE=""
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case "$1" in
|
||||
--output_path)
|
||||
OUTPUT="$2"
|
||||
shift 2
|
||||
;;
|
||||
base|new)
|
||||
MODE="$1"
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ -z "$OUTPUT" ]; then
|
||||
OUTPUT="results.xml"
|
||||
fi
|
||||
|
||||
if [ "$MODE" = "base" ]; then
|
||||
pytest tests/test_sessions.py --junitxml="$OUTPUT"
|
||||
else
|
||||
pytest tests/test_session_access.py --junitxml="$OUTPUT"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue