From 75ff2d680a6e8bc5ca9363e8c4ff1d5befda53ff Mon Sep 17 00:00:00 2001 From: JonJagger Date: Mon, 5 Jan 2026 14:26:23 +0000 Subject: [PATCH] Simplify running only some of the tests --- README.md | 3 ++- bin/build_image.sh | 4 ++-- bin/run_tests.sh | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ef26d26a..7dfb2d43 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,8 @@ $ make {test_server|test_client} # Run only specific tests $ ./bin/run_tests.sh {-h|--help} -$ ./bin/run_tests.sh {server|client} B56 +$ ./bin/run_tests.sh {server|client} B56Sp3 +$ make {test_server|test_client} tid=B56 # Check test metrics $ make {metrics_test_server|metrics_test_client} diff --git a/bin/build_image.sh b/bin/build_image.sh index 7f91765c..764c5548 100755 --- a/bin/build_image.sh +++ b/bin/build_image.sh @@ -89,8 +89,8 @@ build_image() # Tag image-name for local development where differs name comes from echo-versioner-env-vars if [ "${type}" == 'server' ]; then docker tag "${image_name}" "cyberdojo/differ:${CYBER_DOJO_DIFFER_TAG}" - echo "echo CYBER_DOJO_DIFFER_SHA=${CYBER_DOJO_DIFFER_SHA}" - echo "echo CYBER_DOJO_DIFFER_TAG=${CYBER_DOJO_DIFFER_TAG}"] + echo " echo CYBER_DOJO_DIFFER_SHA=${CYBER_DOJO_DIFFER_SHA}" + echo " echo CYBER_DOJO_DIFFER_TAG=${CYBER_DOJO_DIFFER_TAG}"] echo "${image_name}" fi } diff --git a/bin/run_tests.sh b/bin/run_tests.sh index 7814f135..2694671f 100755 --- a/bin/run_tests.sh +++ b/bin/run_tests.sh @@ -94,7 +94,7 @@ run_tests() --env COVERAGE_TEST_TAB_NAME=test \ --user "${USER}" \ "${CONTAINER_NAME}" \ - sh -c "/differ/test/lib/run.sh ${CONTAINER_COVERAGE_DIR} ${TEST_LOG} ${*:2}" + sh -c "/differ/test/lib/run.sh ${CONTAINER_COVERAGE_DIR} ${TEST_LOG} ${*:2} ${tid:-}" local -r STATUS=$? set -e