Tests: accommodate stricter mktemp implementations in tests
authorNathan Lynch <nathan_lynch@mentor.com>
Tue, 1 Nov 2016 17:25:47 +0000 (11:25 -0600)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Nov 2016 17:00:41 +0000 (12:00 -0500)
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 <nathan_lynch@mentor.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/kernel/test_clock_override
tests/regression/ust/clock-override/test_clock_override

index c52ddf100b25f30b05e6b1aadee6dfe434b57d16..2f64bd92943ba1d1c0c4b7fd68f9160e9e8ddfdc 100755 (executable)
@@ -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"
index 722e7315849f6763893a46215f931d736582d18b..77fa91216fa30644adbabaf4686c5907753c0924 100755 (executable)
@@ -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"
This page took 0.02616 seconds and 4 git commands to generate.