THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
To do the same from the output of a pre-commit precommit result, with multiple drivers, you can do
Code Block | ||
---|---|---|
| ||
import re from itertools import groupby s = """ org.apache.hadoop.hive.cli.TestBeeLineDriver.testCliDriver[drop_with_concurrency] (batchId=231) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[comments] (batchId=35) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vector_if_expr] (batchId=141) """ PAT = re.compile("org.apache.hadoop.hive.cli.([^\.]*).*\[([^\]]*).*") l = [PAT.match(x.strip()) for x in s.split("\n") if x.strip()] for driver,q in groupby(sorted([a.groups() for a in l if a]), key=lambda a:a[0]): print """mvn clean test -Dtest=%s '-Dqfile=%s' -Dtest.output.overwrite=true""" % (driver, ",".join(["%s.q" % a[1] for a in q])) |
...
Where is the log output of a test?
...