WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
125386
[GTK] Run each gtest subtest separately instead of in one go
https://bugs.webkit.org/show_bug.cgi?id=125386
Summary
[GTK] Run each gtest subtest separately instead of in one go
Gustavo Noronha (kov)
Reported
2013-12-07 09:07:34 PST
[GTK] Run each gtest subtest separately instead of in one go
Attachments
Patch
(2.68 KB, patch)
2013-12-07 09:09 PST
,
Gustavo Noronha (kov)
mrobinson
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Gustavo Noronha (kov)
Comment 1
2013-12-07 09:09:04 PST
Created
attachment 218657
[details]
Patch
Martin Robinson
Comment 2
2013-12-07 09:16:08 PST
Comment on
attachment 218657
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=218657&action=review
Looks good. Just a few nit-picking code organization suggestions...
> Tools/Scripts/run-gtk-tests:327 > def _run_test_google(self, test_program):
Maybe rename this to _run_google_test_suite?
> Tools/Scripts/run-gtk-tests:345 > + try: > + output = subprocess.check_output([test_program, '--gtest_list_tests']) > + except subprocess.CalledProcessError: > + sys.stderr.write("ERROR: could not list available tests for binary %s.\n" % (test_program)) > + sys.stderr.flush() > + return 1 > > - return self._run_test_command(tester_command, self._options.timeout) > + available_tests = [] > + prefix = None > + for line in output.split('\n'): > + if not line.startswith(' '): > + prefix = line > + continue > + else: > + available_tests.append(prefix + line.strip()) > + > + skipped_test_cases = self._test_cases_to_skip(test_program) > +
Do you mind splitting this off into a helper method?
> Tools/Scripts/run-gtk-tests:352 > + if not test in skipped_test_cases: > + test_command = [test_program, '--gtest_filter=%s' % (test)] > + retcode = self._run_test_command(test_command, self._options.timeout) > + if retcode: > + return retcode > +
And then this can be split off into a helper called run_google_test
Gustavo Noronha (kov)
Comment 3
2013-12-07 09:36:47 PST
Committed
r160274
: <
http://trac.webkit.org/changeset/160274
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug