[PATCH] test: glob the temporary directory out of temporary file path
Boris Feld
boris.feld at octobus.net
Fri Feb 9 18:03:37 UTC 2018
# HG changeset patch
# User Boris Feld <boris.feld at octobus.net>
# Date 1518178697 -3600
# Fri Feb 09 13:18:17 2018 +0100
# Node ID b74d05c795298bc4230950086cc5667a8845cd6c
# Parent c64b9adfb371b6e9dfd2257d3e2f62d5121341df
# EXP-Topic test-tmpdir
# Available At https://bitbucket.org/octobus/mercurial-devel/
# hg pull https://bitbucket.org/octobus/mercurial-devel/ -r b74d05c79529
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.
diff --git a/tests/test-merge-tools.t b/tests/test-merge-tools.t
--- a/tests/test-merge-tools.t
+++ b/tests/test-merge-tools.t
@@ -1358,7 +1358,7 @@ mergemarkertemplate settings:
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 @@ mergemarkertemplate:
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'
More information about the Mercurial-devel
mailing list