##// END OF EJS Templates
tests: handle Windows file separator differences in test-config.t...
Matt Harbison -
r47626:915a60bf default
parent child Browse files
Show More
@@ -1,3 +1,17 b''
1 Windows needs ';' as a file separator in an environment variable, and MSYS
2 doesn't automatically convert it in every case.
3
4 #if windows
5 $ path_list_var() {
6 > echo $1 | sed 's/:/;/'
7 > }
8 #else
9 $ path_list_var() {
10 > echo $1
11 > }
12 #endif
13
14
1 hide outer repo
15 hide outer repo
2 $ hg init
16 $ hg init
3
17
@@ -446,7 +460,7 b' Simple order checking'
446
460
447 If file B is read after file A, value from B overwrite value from A.
461 If file B is read after file A, value from B overwrite value from A.
448
462
449 $ HGRCPATH="file-A.rc:file-B.rc" hg config config-test.basic
463 $ HGRCPATH=`path_list_var "file-A.rc:file-B.rc"` hg config config-test.basic
450 value-B
464 value-B
451
465
452 Ordering from include
466 Ordering from include
@@ -462,7 +476,7 b' value from an include overwrite value de'
462 command line override
476 command line override
463 ---------------------
477 ---------------------
464
478
465 $ HGRCPATH="file-A.rc:file-B.rc" hg config config-test.basic --config config-test.basic=value-CLI
479 $ HGRCPATH=`path_list_var "file-A.rc:file-B.rc"` hg config config-test.basic --config config-test.basic=value-CLI
466 value-CLI
480 value-CLI
467
481
468 Alias ordering
482 Alias ordering
@@ -480,7 +494,7 b' considered "higher level". And higher le'
480 value-A
494 value-A
481 $ HGRCPATH="file-B.rc" hg log -r .
495 $ HGRCPATH="file-B.rc" hg log -r .
482 value-B
496 value-B
483 $ HGRCPATH="file-A.rc:file-B.rc" hg log -r .
497 $ HGRCPATH=`path_list_var "file-A.rc:file-B.rc"` hg log -r .
484 value-B
498 value-B
485
499
486 Alias and include
500 Alias and include
@@ -497,5 +511,5 b' See the case above for details about the'
497 command line override
511 command line override
498 ---------------------
512 ---------------------
499
513
500 $ HGRCPATH="file-A.rc:file-B.rc" hg log -r . --config ui.logtemplate="value-CLI\n"
514 $ HGRCPATH=`path_list_var "file-A.rc:file-B.rc"` hg log -r . --config ui.logtemplate="value-CLI\n"
501 value-CLI
515 value-CLI
General Comments 0
You need to be logged in to leave comments. Login now