# Use bash shell with pipefail option enabled so that the return status of a
# piped command is the value of the last (rightmost) commnand to exit with a
# non-zero status. This lets us pipe output into tee but still exit on test
# failures.
SHELL = /bin/bash
.SHELLFLAGS = -o pipefail -c

all: test

test: install
	mkdir -p /build/reports && \
	pytest --no-cov --disable-pytest-warnings MidCspSubarrayConfiguration_test.py| tee out-stdout; \
	status=$$?; \
	exit $$status
	
install:
	pip3 install -r test_requirements.txt
.PHONY: test
