comparison tests/test-run-tests.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 3086a8627b29
children 1039404c5e1d
comparison
equal deleted inserted replaced
39706:030d558c6456 39707:5abc47d4ca6b
4 4
5 $ . "$TESTDIR/helper-runtests.sh" 5 $ . "$TESTDIR/helper-runtests.sh"
6 6
7 Smoke test with install 7 Smoke test with install
8 ============ 8 ============
9 $ $PYTHON $TESTDIR/run-tests.py $HGTEST_RUN_TESTS_PURE -l 9 $ "$PYTHON" $TESTDIR/run-tests.py $HGTEST_RUN_TESTS_PURE -l
10 10
11 # Ran 0 tests, 0 skipped, 0 failed. 11 # Ran 0 tests, 0 skipped, 0 failed.
12 12
13 Define a helper to avoid the install step 13 Define a helper to avoid the install step
14 ============= 14 =============
15 $ rt() 15 $ rt()
16 > { 16 > {
17 > $PYTHON $TESTDIR/run-tests.py --with-hg=`which hg` "$@" 17 > "$PYTHON" $TESTDIR/run-tests.py --with-hg=`which hg` "$@"
18 > } 18 > }
19 19
20 error paths 20 error paths
21 21
22 #if symlink 22 #if symlink
23 $ ln -s `which true` hg 23 $ ln -s `which true` hg
24 $ $PYTHON $TESTDIR/run-tests.py --with-hg=./hg 24 $ "$PYTHON" $TESTDIR/run-tests.py --with-hg=./hg
25 warning: --with-hg should specify an hg script 25 warning: --with-hg should specify an hg script
26 26
27 # Ran 0 tests, 0 skipped, 0 failed. 27 # Ran 0 tests, 0 skipped, 0 failed.
28 $ rm hg 28 $ rm hg
29 #endif 29 #endif
30 30
31 #if execbit 31 #if execbit
32 $ touch hg 32 $ touch hg
33 $ $PYTHON $TESTDIR/run-tests.py --with-hg=./hg 33 $ "$PYTHON" $TESTDIR/run-tests.py --with-hg=./hg
34 usage: run-tests.py [options] [tests] 34 usage: run-tests.py [options] [tests]
35 run-tests.py: error: --with-hg must specify an executable hg script 35 run-tests.py: error: --with-hg must specify an executable hg script
36 [2] 36 [2]
37 $ rm hg 37 $ rm hg
38 #endif 38 #endif
1281 $LOCALIP (glob) 1281 $LOCALIP (glob)
1282 1282
1283 Add support for external test formatter 1283 Add support for external test formatter
1284 ======================================= 1284 =======================================
1285 1285
1286 $ CUSTOM_TEST_RESULT=basic_test_result $PYTHON $TESTDIR/run-tests.py --with-hg=`which hg` "$@" test-success.t test-failure.t 1286 $ CUSTOM_TEST_RESULT=basic_test_result "$PYTHON" $TESTDIR/run-tests.py --with-hg=`which hg` "$@" test-success.t test-failure.t
1287 1287
1288 # Ran 2 tests, 0 skipped, 0 failed. 1288 # Ran 2 tests, 0 skipped, 0 failed.
1289 ON_START! <__main__.TestSuite tests=[<__main__.TTest testMethod=test-failure.t>, <__main__.TTest testMethod=test-success.t>]> 1289 ON_START! <__main__.TestSuite tests=[<__main__.TTest testMethod=test-failure.t>, <__main__.TTest testMethod=test-success.t>]>
1290 FAILURE! test-failure.t output changed 1290 FAILURE! test-failure.t output changed
1291 SUCCESS! test-success.t 1291 SUCCESS! test-success.t