Show More
@@ -141,6 +141,8 b' def parseargs():' | |||
|
141 | 141 | help="skip tests listed in the specified blacklist file") |
|
142 | 142 | parser.add_option("--whitelist", action="append", |
|
143 | 143 | help="always run tests listed in the specified whitelist file") |
|
144 | parser.add_option("--changed", type="string", | |
|
145 | help="run tests that are changed in parent rev or working directory") | |
|
144 | 146 | parser.add_option("-C", "--annotate", action="store_true", |
|
145 | 147 | help="output files annotated with coverage") |
|
146 | 148 | parser.add_option("-c", "--cover", action="store_true", |
@@ -1181,7 +1183,13 b' def main():' | |||
|
1181 | 1183 | checktools() |
|
1182 | 1184 | |
|
1183 | 1185 | if not args: |
|
1184 | args = os.listdir(".") | |
|
1186 | if options.changed: | |
|
1187 | proc = Popen4('hg st --rev "%s" -man0 .' % options.changed, | |
|
1188 | None, 0) | |
|
1189 | stdout, stderr = proc.communicate() | |
|
1190 | args = stdout.strip('\0').split('\0') | |
|
1191 | else: | |
|
1192 | args = os.listdir(".") | |
|
1185 | 1193 | |
|
1186 | 1194 | tests = [t for t in args |
|
1187 | 1195 | if t.startswith("test-") |
General Comments 0
You need to be logged in to leave comments.
Login now