I'm not completely sure why, but in the old format (no =) the commandline class ...
11 years, 7 months ago
(2014-05-15 17:44:30 UTC)
#1
I'm not completely sure why, but in the old format (no =) the commandline class
in the test wasn't getting any of the values for the flags (so there wasn't any
file to write the json too).
I've also load_run_test_cases_results to just assert inside of returning (None,
None) because the code really can't continue after that (it'll just hit the next
assert, which isn't as clear to what is going on)
https://codereview.appspot.com/98280044/diff/20001/googletest/fix_test_cases.py File googletest/fix_test_cases.py (right): https://codereview.appspot.com/98280044/diff/20001/googletest/fix_test_cases.py#newcode97 googletest/fix_test_cases.py:97: # This assumes run_test_cases.py is used. The problem is ...
11 years, 7 months ago
(2014-05-15 18:20:34 UTC)
#2
https://codereview.appspot.com/98280044/diff/20001/googletest/fix_test_cases.py
File googletest/fix_test_cases.py (right):
https://codereview.appspot.com/98280044/diff/20001/googletest/fix_test_cases....
googletest/fix_test_cases.py:97: # This assumes run_test_cases.py is used.
The problem is that run_test_cases.py is not used anymore, it's test launcher
that is getting these. And the way it parses argument is with --foo=bar. That
means more parameters are ignored, including --result. Test launcher can output
.json file about each unit test, it's just different from run_test_cases.py's
format.
So in the meantime we may just want to delete the script and references to it.
:/
https://codereview.appspot.com/98280044/diff/20001/googletest/fix_test_cases.py File googletest/fix_test_cases.py (right): https://codereview.appspot.com/98280044/diff/20001/googletest/fix_test_cases.py#newcode97 googletest/fix_test_cases.py:97: # This assumes run_test_cases.py is used. On 2014/05/15 18:20:34, ...
11 years, 7 months ago
(2014-05-15 18:24:25 UTC)
#3
https://codereview.appspot.com/98280044/diff/20001/googletest/fix_test_cases.py
File googletest/fix_test_cases.py (right):
https://codereview.appspot.com/98280044/diff/20001/googletest/fix_test_cases....
googletest/fix_test_cases.py:97: # This assumes run_test_cases.py is used.
On 2014/05/15 18:20:34, M-A wrote:
> The problem is that run_test_cases.py is not used anymore, it's test launcher
> that is getting these. And the way it parses argument is with --foo=bar. That
> means more parameters are ignored, including --result. Test launcher can
output
> .json file about each unit test, it's just different from run_test_cases.py's
> format.
>
> So in the meantime we may just want to delete the script and references to it.
> :/
Delete this script? I think this fixes the problems though so why not keep it?
Issue 98280044: Properly pass parameters to test executables.
Created 11 years, 7 months ago by csharp
Modified 11 years, 7 months ago
Reviewers: M-A
Base URL: https://code.google.com/p/swarming.client/@master
Comments: 2