##// END OF EJS Templates
run-tests.py: add TESTDIR to PATH if it differs from RUNTESTDIR...
FUJIWARA Katsunori -
r25730:c380d527 default
parent child Browse files
Show More
@@ -1812,6 +1812,8 b' class TestRunner(object):'
1812 1812 realfile = os.path.realpath(fileb)
1813 1813 realdir = os.path.abspath(os.path.dirname(realfile))
1814 1814 path.insert(2, realdir)
1815 if self._testdir != runtestdir:
1816 path = [self._testdir] + path
1815 1817 if self._tmpbindir != self._bindir:
1816 1818 path = [self._tmpbindir] + path
1817 1819 osenvironb[b"PATH"] = sepb.join(path)
@@ -602,3 +602,22 b' running is placed.'
602 602 $ run-tests.py test-runtestdir.t
603 603 .
604 604 # Ran 1 tests, 0 skipped, 0 warned, 0 failed.
605
606 #if execbit
607
608 test that TESTDIR is referred in PATH
609
610 $ cat > custom-command.sh <<EOF
611 > #!/bin/sh
612 > echo "hello world"
613 > EOF
614 $ chmod +x custom-command.sh
615 $ cat > test-testdir-path.t <<EOF
616 > $ custom-command.sh
617 > hello world
618 > EOF
619 $ run-tests.py test-testdir-path.t
620 .
621 # Ran 1 tests, 0 skipped, 0 warned, 0 failed.
622
623 #endif
General Comments 0
You need to be logged in to leave comments. Login now