mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
change LXC_NAME to WORKER_ID for logs and results
This commit is contained in:
parent
ef2c602d4a
commit
5c42ae0774
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue