Show More
@@ -68,9 +68,13 b' Current directory removed:' | |||||
68 | $ mkdir $TESTTMP/repo1 |
|
68 | $ mkdir $TESTTMP/repo1 | |
69 | $ cd $TESTTMP/repo1 |
|
69 | $ cd $TESTTMP/repo1 | |
70 | $ rm -rf $TESTTMP/repo1 |
|
70 | $ rm -rf $TESTTMP/repo1 | |
71 | $ HGDEMANDIMPORT=disable hg version -q |
|
71 | ||
72 | abort: error getting current working directory: * (glob) (no-chg !) |
|
72 | The output could be one of the following and something else: | |
73 |
|
|
73 | chg: abort: failed to getcwd (errno = *) (glob) | |
74 | [255] |
|
74 | abort: error getting current working directory: * (glob) | |
|
75 | sh: 0: getcwd() failed: No such file or directory | |||
|
76 | Since the exact behavior depends on the shell, only check it returns non-zero. | |||
|
77 | $ HGDEMANDIMPORT=disable hg version -q 2>/dev/null || false | |||
|
78 | [1] | |||
75 |
|
79 | |||
76 | #endif |
|
80 | #endif |
General Comments 0
You need to be logged in to leave comments.
Login now