change LXC_NAME to WORKER_ID for logs and results

This commit is contained in:
Kay0u 2021-10-13 14:56:04 +02:00
parent ef2c602d4a
commit 5c42ae0774
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -4,7 +4,7 @@ source lib/lxc.sh
source lib/tests.sh source lib/tests.sh
source lib/witness.sh source lib/witness.sh
readonly complete_log="./Complete-${LXC_NAME}.log" readonly complete_log="./Complete-${WORKER_ID}.log"
# Purge some log files # Purge some log files
rm -f "$complete_log" && touch "$complete_log" rm -f "$complete_log" && touch "$complete_log"
@ -295,7 +295,7 @@ run_all_tests() {
# Print the final results of the tests # Print the final results of the tests
log_title "Tests summary" log_title "Tests summary"
python3 lib/analyze_test_results.py $TEST_CONTEXT 2> ./results-${LXC_NAME}.json python3 lib/analyze_test_results.py $TEST_CONTEXT 2> ./results-${WORKER_ID}.json
[[ -e "$TEST_CONTEXT/summary.png" ]] && cp "$TEST_CONTEXT/summary.png" ./summary.png || rm -f summary.png [[ -e "$TEST_CONTEXT/summary.png" ]] && cp "$TEST_CONTEXT/summary.png" ./summary.png || rm -f summary.png
# Restore the started time for the timer # Restore the started time for the timer