diff options
author | William Blevins <wblevins001@gmail.com> | 2016-09-23 06:13:44 (GMT) |
---|---|---|
committer | William Blevins <wblevins001@gmail.com> | 2016-09-23 06:13:44 (GMT) |
commit | d2312ff7f05636c425526936d1957464221b26d0 (patch) | |
tree | b9e1870afd2bbb9196c559a48b18a9e37f398539 /QMTest | |
parent | 2c18000b934722c69e23a2d0ad181767d5266ac9 (diff) | |
download | SCons-d2312ff7f05636c425526936d1957464221b26d0.zip SCons-d2312ff7f05636c425526936d1957464221b26d0.tar.gz SCons-d2312ff7f05636c425526936d1957464221b26d0.tar.bz2 |
Initial python3 cut of test/Fortran.
Diffstat (limited to 'QMTest')
-rw-r--r-- | QMTest/TestCmd.py | 10 | ||||
-rw-r--r-- | QMTest/TestSCons.py | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/QMTest/TestCmd.py b/QMTest/TestCmd.py index 109c83a..370101b 100644 --- a/QMTest/TestCmd.py +++ b/QMTest/TestCmd.py @@ -1251,12 +1251,12 @@ class TestCmd(object): if srcdir and self.fixture_dirs and not os.path.isabs(srcdir): for dir in self.fixture_dirs: - spath = os.path.join(self.fixture_dirs, srcdir) + spath = os.path.join(dir, srcdir) if os.path.isdir(spath): - continue - + break else: spath = srcdir + if dstdir: dstdir = self.canonicalize(dstdir) else: @@ -1295,9 +1295,9 @@ class TestCmd(object): spath = srcfile else: for dir in self.fixture_dirs: - spath = os.path.join(self.fixture_dirs, srcfile) + spath = os.path.join(dir, srcfile) if os.path.isfile(spath): - continue + break if not dstfile: if srctail: diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py index f02ddd8..a987c5a 100644 --- a/QMTest/TestSCons.py +++ b/QMTest/TestSCons.py @@ -268,7 +268,7 @@ class TestSCons(TestCommon): SCons.Node.FS.default_fs = SCons.Node.FS.FS() try: - self.fixture_dirs = os.environ['FIXTURE_DIRS'].split(':') + self.fixture_dirs = (os.environ['FIXTURE_DIRS']).split(':') except KeyError: pass |