Intended use case is:
./utils/update_test_checks.py test/Transform/PassDir/* --update-only
(i.e. rapidly be able to see changes in autogened filed, before handing non-autogened tests individually)
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
utils/update_test_checks.py | ||
---|---|---|
65 ↗ | (On Diff #212912) | Prefer single quotes. |
92 ↗ | (On Diff #212912) | 'autogenerated' |
113 ↗ | (On Diff #212912) | '...........{}'.format(l) is usually preferred over print('WARNING: Skipping unparseable RUN line: %s' % (l,), file=sys.stderr) (note comma after ll) The comma makes it a one-element tuple. (l) is the same as l. |
Could be reasonable done, but given the divergence already existing, would need to be hand implemented for each. I'm not volunteering.
utils/update_test_checks.py | ||
---|---|---|
113 ↗ | (On Diff #212912) | I'd prefer to follow the style of all the surrounding code which uses this construct. p.s. The common vs non-common form appear to evaluate exactly the same. (Based on the output of a test only) |
Thanks, useful!
I'm not volunteering.
You already did all coding work, copy (move to common) and test it shouldn’t be so hard. Anyway, after you land this, I could port your work to other update scripts.
utils/update_test_checks.py | ||
---|---|---|
65 ↗ | (On Diff #212912) | Can you add short option? |
utils/update_test_checks.py | ||
---|---|---|
93 ↗ | (On Diff #213089) | "Skipping test which isn't autogenerated: " + test |
112 ↗ | (On Diff #213089) | '|' |
113 ↗ | (On Diff #212912) | Alternatively, 'WARNING: Skipping unparseable RUN line: ' + l %s can mean str, int, list ([1,2,3]) and many other strings that can be converted to a str via str(). |