aboutsummaryrefslogtreecommitdiff
path: root/devel/got/files/patch-regress_cmdline_import.sh
diff options
context:
space:
mode:
Diffstat (limited to 'devel/got/files/patch-regress_cmdline_import.sh')
-rw-r--r--devel/got/files/patch-regress_cmdline_import.sh38
1 files changed, 38 insertions, 0 deletions
diff --git a/devel/got/files/patch-regress_cmdline_import.sh b/devel/got/files/patch-regress_cmdline_import.sh
new file mode 100644
index 000000000000..24780e2bc2fb
--- /dev/null
+++ b/devel/got/files/patch-regress_cmdline_import.sh
@@ -0,0 +1,38 @@
+--- regress/cmdline/import.sh.orig 2020-09-13 18:20:00 UTC
++++ regress/cmdline/import.sh
+@@ -18,7 +18,7 @@
+
+ test_import_basic() {
+ local testname=import_basic
+- local testroot=`mktemp -p /tmp -d got-test-$testname-XXXXXXXX`
++ local testroot=`mktemp -d ${TMPDIR-/tmp}/got-test-$testname-XXXXXXXX`
+
+ got init $testroot/repo
+
+@@ -170,7 +170,7 @@ test_import_requires_new_branch() {
+
+ test_import_ignores() {
+ local testname=import_ignores
+- local testroot=`mktemp -p /tmp -d got-test-$testname-XXXXXXXX`
++ local testroot=`mktemp -d ${TMPDIR-/tmp}/got-test-$testname-XXXXXXXX`
+
+ got init $testroot/repo
+
+@@ -200,7 +200,7 @@ test_import_ignores() {
+
+ test_import_empty_dir() {
+ local testname=import_empty_dir
+- local testroot=`mktemp -p /tmp -d got-test-$testname-XXXXXXXX`
++ local testroot=`mktemp -d ${TMPDIR-/tmp}/got-test-$testname-XXXXXXXX`
+
+ got init $testroot/repo
+
+@@ -243,7 +243,7 @@ test_import_empty_dir() {
+
+ test_import_symlink() {
+ local testname=import_symlink
+- local testroot=`mktemp -p /tmp -d got-test-$testname-XXXXXXXX`
++ local testroot=`mktemp -d ${TMPDIR-/tmp}/got-test-$testname-XXXXXXXX`
+
+ got init $testroot/repo
+