comparison tests/test-fix.t @ 39707:5abc47d4ca6b

tests: quote PYTHON usage Python3 defaults to installing under "Program Files".
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 18 Sep 2018 23:47:21 -0400
parents 46da52f4b820
children 93bab80993f4
comparison
equal deleted inserted replaced
39706:030d558c6456 39707:5abc47d4ca6b
20 > sys.stdout.write(line.upper()) 20 > sys.stdout.write(line.upper())
21 > else: 21 > else:
22 > sys.stdout.write(line) 22 > sys.stdout.write(line)
23 > EOF 23 > EOF
24 $ TESTLINES="foo\nbar\nbaz\nqux\n" 24 $ TESTLINES="foo\nbar\nbaz\nqux\n"
25 $ printf $TESTLINES | $PYTHON $UPPERCASEPY 25 $ printf $TESTLINES | "$PYTHON" $UPPERCASEPY
26 foo 26 foo
27 bar 27 bar
28 baz 28 baz
29 qux 29 qux
30 $ printf $TESTLINES | $PYTHON $UPPERCASEPY all 30 $ printf $TESTLINES | "$PYTHON" $UPPERCASEPY all
31 FOO 31 FOO
32 BAR 32 BAR
33 BAZ 33 BAZ
34 QUX 34 QUX
35 $ printf $TESTLINES | $PYTHON $UPPERCASEPY 1-1 35 $ printf $TESTLINES | "$PYTHON" $UPPERCASEPY 1-1
36 FOO 36 FOO
37 bar 37 bar
38 baz 38 baz
39 qux 39 qux
40 $ printf $TESTLINES | $PYTHON $UPPERCASEPY 1-2 40 $ printf $TESTLINES | "$PYTHON" $UPPERCASEPY 1-2
41 FOO 41 FOO
42 BAR 42 BAR
43 baz 43 baz
44 qux 44 qux
45 $ printf $TESTLINES | $PYTHON $UPPERCASEPY 2-3 45 $ printf $TESTLINES | "$PYTHON" $UPPERCASEPY 2-3
46 foo 46 foo
47 BAR 47 BAR
48 BAZ 48 BAZ
49 qux 49 qux
50 $ printf $TESTLINES | $PYTHON $UPPERCASEPY 2-2 4-4 50 $ printf $TESTLINES | "$PYTHON" $UPPERCASEPY 2-2 4-4
51 foo 51 foo
52 BAR 52 BAR
53 baz 53 baz
54 QUX 54 QUX
55 55
63 > fix = 63 > fix =
64 > [experimental] 64 > [experimental]
65 > evolution.createmarkers=True 65 > evolution.createmarkers=True
66 > evolution.allowunstable=True 66 > evolution.allowunstable=True
67 > [fix] 67 > [fix]
68 > uppercase-whole-file:command=$PYTHON $UPPERCASEPY all 68 > uppercase-whole-file:command="$PYTHON" $UPPERCASEPY all
69 > uppercase-whole-file:fileset=set:**.whole 69 > uppercase-whole-file:fileset=set:**.whole
70 > uppercase-changed-lines:command=$PYTHON $UPPERCASEPY 70 > uppercase-changed-lines:command="$PYTHON" $UPPERCASEPY
71 > uppercase-changed-lines:linerange={first}-{last} 71 > uppercase-changed-lines:linerange={first}-{last}
72 > uppercase-changed-lines:fileset=set:**.changed 72 > uppercase-changed-lines:fileset=set:**.changed
73 > EOF 73 > EOF
74 74
75 Help text for fix. 75 Help text for fix.