29 lines
432 B
Bash
29 lines
432 B
Bash
#!/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
|