test: glob the temporary directory out of temporary file path
authorBoris Feld <boris.feld@octobus.net>
Fri, 09 Feb 2018 13:18:17 +0100
changeset 35992 07cd54eae696
parent 35991 04304b779df1
child 35993 a603a570cdbe
test: glob the temporary directory out of temporary file path The temporary directory used by python might be outside of '/tmp/' (eg: /dev/shm/) so we glob that part out.
tests/test-merge-tools.t
--- a/tests/test-merge-tools.t	Fri Feb 09 12:48:12 2018 +0100
+++ b/tests/test-merge-tools.t	Fri Feb 09 13:18:17 2018 +0100
@@ -1358,7 +1358,7 @@
   arg: "ll:working copy"
   arg: "lo:"
   arg: "merge rev"
-  arg: "lb:base: /tmp/f~base.*" (glob)
+  arg: "lb:base: /*/f~base.*" (glob)
   0 files updated, 1 files merged, 0 files removed, 0 files unresolved
   (branch merge, don't forget to commit)
   $ rm -f 'printargs_merge_tool'
@@ -1388,7 +1388,7 @@
   arg: "ll:working copy: tooltmpl ef83787e2614"
   arg: "lo:"
   arg: "merge rev: tooltmpl 0185f4e0cf02"
-  arg: "lb:base: /tmp/f~base.*" (glob)
+  arg: "lb:base: /*/f~base.*" (glob)
   0 files updated, 1 files merged, 0 files removed, 0 files unresolved
   (branch merge, don't forget to commit)
   $ rm -f 'printargs_merge_tool'