Tests: metadata-regeneration: restore date at the end of the test
[lttng-tools.git] / tests / destructive / metadata-regeneration
index 7311b3002707c985040d1bd6a40d88f8b26ff85d..048c601b60f06f4f9d0aff58d375c2243e4ddc21 100755 (executable)
@@ -204,6 +204,7 @@ fi
 
 skip $isroot "Root access is needed. Skipping all tests." $NUM_TESTS ||
 {
+       original_date=$(date)
        start_lttng_relayd "-o $TRACE_PATH"
        start_lttng_sessiond
 
@@ -217,4 +218,11 @@ skip $isroot "Root access is needed. Skipping all tests." $NUM_TESTS ||
 
        stop_lttng_sessiond
        stop_lttng_relayd
+
+       # This set of test sets the date in the past which causes
+       # `make` to panic when it sees files created in the "future"
+       # while running the "check" target. Obviously this doesn't set
+       # the correct date, but at least its close enough to allow the
+       # test suite to continue.
+       date --set "$original_date"
 }
This page took 0.02501 seconds and 4 git commands to generate.