aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2016-07-16 23:49:30 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-07-18 13:32:36 +1000
commit8f542322613e06ea9340772c2995975e642c2c48 (patch)
treebe1a6e4b05209053dc4e1eaca21bd1407fdef249 /test
parent61e6c5d32b62d76fa7cafecd183864cf634ca9ef (diff)
downloadskiboot-8f542322613e06ea9340772c2995975e642c2c48.zip
skiboot-8f542322613e06ea9340772c2995975e642c2c48.tar.gz
skiboot-8f542322613e06ea9340772c2995975e642c2c48.tar.bz2
make check: Use mktemp instead of tempfile
Commit 2ceb8b8c (make check: make test runs less noisy) used tempfile command to create temporary files. Looks like distros like Fedora doesn't have tempfile command. Looks like mktemp is supported on all distros (at least Fedora and Ubuntu supports this command). Hence replace tempfile with mktemp. Output without patch: [ CLEANUP ] gard-test-clean ./test/run.sh: line 3: tempfile: command not found skiboot/external/gard/test/Makefile.check:18: recipe for target 'gard-test-clean' failed make: *** [gard-test-clean] Error 1 Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Reported-by: Balbir Singh <bsingharora@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest/run.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/run.sh b/test/run.sh
index 5185f5a..e159bd3 100755
--- a/test/run.sh
+++ b/test/run.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-t=$(tempfile) || exit 1
+t=$(mktemp) || exit 1
trap "rm -f -- '$t'" EXIT