From: Alexandros Frantzis Date: Thu, 3 Sep 2020 11:22:40 +0000 (+0300) Subject: tracie: Make tests independent of environment X-Git-Tag: upstream/21.0.0~5554 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd471928c94e31d103ac94d397122ff42d20b983;p=platform%2Fupstream%2Fmesa.git tracie: Make tests independent of environment Provide some sensible values for required environment variables to allow tests to run properly in any environment. Signed-off-by: Alexandros Frantzis Reviewed-by: Eric Anholt Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- diff --git a/.gitlab-ci/tracie-runner-gl.sh b/.gitlab-ci/tracie-runner-gl.sh index da4ce39..418dd3d 100755 --- a/.gitlab-ci/tracie-runner-gl.sh +++ b/.gitlab-ci/tracie-runner-gl.sh @@ -33,7 +33,7 @@ mkdir -p $RESULTS # Perform a self-test to ensure tracie is working properly. if [ -z "$TRACIE_NO_UNIT_TESTS" ]; then - TRACIE_UPLOAD_TO_MINIO=0 python3 -m pytest -v --pyargs $INSTALL/tracie/tests/test.py + python3 -m pytest -v --pyargs $INSTALL/tracie/tests/test.py fi if [ "$GALLIUM_DRIVER" = "virpipe" ]; then diff --git a/.gitlab-ci/tracie/tests/test.py b/.gitlab-ci/tracie/tests/test.py index 21264cc..ff4780c 100644 --- a/.gitlab-ci/tracie/tests/test.py +++ b/.gitlab-ci/tracie/tests/test.py @@ -58,7 +58,10 @@ def prepare_for_run(tmp_path): shutil.move("./tests/test-data", "./traces-db") # Disable trace storing environ["TRACIE_STORE_IMAGES"] = "0" - + environ["TRACIE_UPLOAD_TO_MINIO"] = "0" + environ["CI_PROJECT_PATH"] = "test-project" + environ["CI_PIPELINE_ID"] = "667" + environ["CI_JOB_ID"] = "42" def cleanup(tmp_path): '''