Merge lp:~asc/fluidity/testharnesscwd2 into lp:fluidity
Proposed by
Adam Candy
Status: | Work in progress |
---|---|
Proposed branch: | lp:~asc/fluidity/testharnesscwd2 |
Merge into: | lp:fluidity |
Diff against target: |
53 lines (+13/-9) 1 file modified
tools/testharness.py (+13/-9) |
To merge this branch: | bzr merge lp:~asc/fluidity/testharnesscwd2 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Adam Candy | Needs Fixing | ||
Review via email: mp+74069@code.launchpad.net |
Description of the change
Added an option to testharness.py to search for test XMLs in folders of the current working directory. This is useful if you use one version of the script in multiple branches.
To post a comment you must log in.
Unmerged revisions
- 3569. By Adam Candy
-
Added an option to testharness.py to search for test XMLs in folders of the current working directory. This is useful if you use one version of the script in multiple branches.
Hi Adam,
a) I'm a bit confused about what the use case of this can be. Can you tell the story of why you wanted this feature?
b) Couldn't this feature be much more simply implemented with a one-line change like
=== modified file 'tools/ testharness. py' ss.py 2011-08-05 11:19:06 +0000 ss.py 2011-09-05 14:53:28 +0000 exists( os.path. join(rootdir, directory)):
dirnames. append( directory) join(directory, x) for x in os.listdir( directory) ]
--- tools/testharne
+++ tools/testharne
@@ -50,7 +50,7 @@
for directory in testpaths:
if os.path.
- testdirs = [ os.path.join( rootdir, x ) for x in dirnames ]
+ testdirs = [ os.path.join( rootdir, x ) for x in dirnames ] + [os.getcwd()]
for directory in testdirs:
subdirs = [ os.path.
for subdir in subdirs:
? I don't really know why you didn't take this approach -- like I said, I don't know why you want it.