From 8f1785ee0c7957338b8f23752ba3ff6d087d4faf Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sun, 22 Oct 2017 23:21:52 +0200 Subject: [PATCH] Add time in the lock file --- package_check.sh | 2 +- sub_scripts/testing_process.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package_check.sh b/package_check.sh index 1f306ce..f0d1ce6 100755 --- a/package_check.sh +++ b/package_check.sh @@ -175,7 +175,7 @@ then fi fi # Create the lock file -touch "$lock_file" +echo "start:$(date +%s)" > "$lock_file" #================================================= # Check the internet connectivity diff --git a/sub_scripts/testing_process.sh b/sub_scripts/testing_process.sh index ee32e47..f392ed6 100644 --- a/sub_scripts/testing_process.sh +++ b/sub_scripts/testing_process.sh @@ -1299,6 +1299,9 @@ TEST_LAUNCHER () { starttime=$global_start_timer # End the timer for the test stop_timer 2 + + # Update the lock file with the date of the last finished test. + echo "$1 $2:$(date +%s)" > "$lock_file" } set_witness_files () {