Optional test for the metadata regeneration
[lttng-tools.git] / tests / utils / utils.sh
index 854bae5d2bac49f81fba140e4903e39c3deee1c8..52c2f6badb9d50d46c1116d4c5b20be689dc97e4 100644 (file)
@@ -1334,3 +1334,12 @@ function metadata_regenerate_fail ()
 {
        metadata_regenerate 1 "$@"
 }
+
+function destructive_tests_enabled ()
+{
+       if [ ${LTTNG_ENABLE_DESTRUCTIVE_TESTS} = "will-break-my-system" ]; then
+               return 0
+       else
+               return 1
+       fi
+}
This page took 0.025879 seconds and 5 git commands to generate.