chiark / gitweb /
tests: short args for mktemp to support BSD
authorAlex Burka <aburka@seas.upenn.edu>
Mon, 27 Jul 2015 18:34:01 +0000 (11:34 -0700)
committerHans-Christoph Steiner <hans@eds.org>
Fri, 31 Jul 2015 22:38:40 +0000 (00:38 +0200)
*BSD and OSX do not have compatible long args

tests/run-tests

index df4d635552b2cf7b257bfac4cba87e74f8fbb489..b8f557633620062395109a5128d9322b566b37c4 100755 (executable)
@@ -35,12 +35,12 @@ create_fake_android_home() {
 
 create_test_dir() {
     test -e $WORKSPACE/.testfiles || mkdir $WORKSPACE/.testfiles
-    mktemp --directory --tmpdir=$WORKSPACE/.testfiles
+    TMPDIR=$WORKSPACE/.testfiles  mktemp -d
 }
 
 create_test_file() {
     test -e $WORKSPACE/.testfiles || mkdir $WORKSPACE/.testfiles
-    mktemp --tmpdir=$WORKSPACE/.testfiles
+    TMPDIR=$WORKSPACE/.testfiles  mktemp
 }
 
 #------------------------------------------------------------------------------#