From: Nathan Lynch Date: Tue, 1 Nov 2016 17:25:47 +0000 (-0600) Subject: Tests: accommodate stricter mktemp implementations in tests X-Git-Tag: v2.9.0~23 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=33221e36a0e0cdf034a7f539b5aae60d4a83e059;p=lttng-tools.git Tests: accommodate stricter mktemp implementations in tests Busybox's mktemp command uses mkstemp(3) which requires the last six characters of the template to be X's. Extend the mktemp templates used in the test scripts. Signed-off-by: Nathan Lynch Signed-off-by: Jérémie Galarneau --- diff --git a/tests/regression/kernel/test_clock_override b/tests/regression/kernel/test_clock_override index c52ddf100..2f64bd929 100755 --- a/tests/regression/kernel/test_clock_override +++ b/tests/regression/kernel/test_clock_override @@ -76,8 +76,8 @@ function extract_clock_metadata_token() function test_clock_override_metadata() { - local ctf_metadata_file=$(mktemp -p $TRACE_PATH ctf-metadata.XXXXX) - local clock_metadata_file=$(mktemp -p $TRACE_PATH clock-metadata.XXXXX) + local ctf_metadata_file=$(mktemp -p $TRACE_PATH ctf-metadata.XXXXXX) + local clock_metadata_file=$(mktemp -p $TRACE_PATH clock-metadata.XXXXXX) local result="" diag "Clock override plugin metadata test" diff --git a/tests/regression/ust/clock-override/test_clock_override b/tests/regression/ust/clock-override/test_clock_override index 722e73158..77fa91216 100755 --- a/tests/regression/ust/clock-override/test_clock_override +++ b/tests/regression/ust/clock-override/test_clock_override @@ -76,8 +76,8 @@ function extract_clock_metadata_token() function test_getcpu_override_metadata() { - local ctf_metadata_file=$(mktemp -p $TRACE_PATH ctf-metadata.XXXXX) - local clock_metadata_file=$(mktemp -p $TRACE_PATH clock-metadata.XXXXX) + local ctf_metadata_file=$(mktemp -p $TRACE_PATH ctf-metadata.XXXXXX) + local clock_metadata_file=$(mktemp -p $TRACE_PATH clock-metadata.XXXXXX) local result="" diag "Clock override plugin metadata test"