##// END OF EJS Templates
tests: conditionalize return code on chg in test-config.t...
Pulkit Goyal -
r46604:60523483 default
parent child Browse files
Show More
@@ -6,35 +6,59 b' Invalid syntax: no value'
6 6 $ cat > .hg/hgrc << EOF
7 7 > novaluekey
8 8 > EOF
9 #if chg
10 $ hg showconfig
11 config error at $TESTTMP/.hg/hgrc:1: novaluekey
12 [255]
13 #else
9 14 $ hg showconfig
10 15 config error at $TESTTMP/.hg/hgrc:1: novaluekey
11 16 [30]
17 #endif
12 18
13 19 Invalid syntax: no key
14 20
15 21 $ cat > .hg/hgrc << EOF
16 22 > =nokeyvalue
17 23 > EOF
24 #if chg
25 $ hg showconfig
26 config error at $TESTTMP/.hg/hgrc:1: =nokeyvalue
27 [255]
28 #else
18 29 $ hg showconfig
19 30 config error at $TESTTMP/.hg/hgrc:1: =nokeyvalue
20 31 [30]
32 #endif
21 33
22 34 Test hint about invalid syntax from leading white space
23 35
24 36 $ cat > .hg/hgrc << EOF
25 37 > key=value
26 38 > EOF
39 #if chg
40 $ hg showconfig
41 config error at $TESTTMP/.hg/hgrc:1: unexpected leading whitespace: key=value
42 [255]
43 #else
27 44 $ hg showconfig
28 45 config error at $TESTTMP/.hg/hgrc:1: unexpected leading whitespace: key=value
29 46 [30]
47 #endif
30 48
31 49 $ cat > .hg/hgrc << EOF
32 50 > [section]
33 51 > key=value
34 52 > EOF
53 #if chg
54 $ hg showconfig
55 config error at $TESTTMP/.hg/hgrc:1: unexpected leading whitespace: [section]
56 [255]
57 #else
35 58 $ hg showconfig
36 59 config error at $TESTTMP/.hg/hgrc:1: unexpected leading whitespace: [section]
37 60 [30]
61 #endif
38 62
39 63 Reset hgrc
40 64
General Comments 0
You need to be logged in to leave comments. Login now