17 lines
356 B
Bash
17 lines
356 B
Bash
#!/bin/sh
|
|
# Start the dedicated short-TTL stand, run the expiry tests, always tear it down.
|
|
set -eu
|
|
cd "$(dirname "$0")/.."
|
|
|
|
PORT="${TTL_PORT:-8081}"
|
|
status=0
|
|
|
|
sh scripts/ttl-stack.sh start
|
|
|
|
cd student-tests
|
|
BASE_URL="http://127.0.0.1:$PORT" "${PYTHON:-python}" -B -m unittest -v test_expiry || status=$?
|
|
cd ..
|
|
|
|
sh scripts/ttl-stack.sh stop
|
|
exit "$status"
|