make running tests optional in docker build
This commit is contained in:
@@ -4,8 +4,10 @@ WORKDIR /extract
|
||||
|
||||
COPY . .
|
||||
|
||||
ARG run_tests=true
|
||||
|
||||
RUN pip install protobuf qrcode Pillow \
|
||||
&& /extract/run_pytest.sh test_extract_otp_secret_keys_pytest.py -k "not qreader" --relaxed
|
||||
&& if [[ "$run_tests" == "true" ]] ; then /extract/run_pytest.sh test_extract_otp_secret_keys_pytest.py -k "not qreader" --relaxed ; else echo "Not running tests..." ; fi
|
||||
|
||||
WORKDIR /files
|
||||
|
||||
|
||||
Reference in New Issue
Block a user