Fix various PEP 8, style and PyFlakes issues
Review Request #9655 — Created Feb. 16, 2018 and submitted
Fix various PEP 8, sytle and PyFlakes issues.
I've also included an exception for E129 in the setup.cfg to make it explicit in the codebase
that this is the expected style.
(%) flake8 -v tests rbtools
flake8.checker MainProcess 409 INFO Making checkers
flake8.checker MainProcess 650 INFO Checking 79 files
flake8.main.application MainProcess 2483 INFO Finished running
flake8.main.application MainProcess 2484 INFO Reporting errors
flake8.main.application MainProcess 2485 INFO Found a total of 37 violations and reported 0Note: These violations were in appdirs.py and the docs directory.
time ./tests/runtests.py
/Volumes/Augie/solarmist/rbtools/lib/python2.7/site-packages/nose/pyversion.py:36: DeprecationWarning: The 'new' module has been removed in Python 3.0; use the 'types' module instead.
import new
/Volumes/Augie/solarmist/rbtools/lib/python2.7/site-packages/nose/plugins/prof.py:14: DeprecationWarning: The 'hotshot' module is not supported in 3.x, use the 'profile' module instead.
import hotshot
/Volumes/Augie/solarmist/rbtools/lib/python2.7/site-packages/nose/pyversion.py:49: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
class Key(object):
#1 Testing the cache with a high max-age value ... /Volumes/Augie/solarmist/rbtools/rbtools/api/cache.py:479: DeprecationWarning: buffer() not supported in 3.x
sqlite3.Binary(entry.response_body)))
ok
#2 Testing the cache with a zero max-age value ... /Volumes/Augie/solarmist/rbtools/rbtools/api/cache.py:493: DeprecationWarning: buffer() not supported in 3.x
sqlite3.Binary(entry.response_body), entry.url,
okRan 210 tests in 215.007s
OK
./tests/runtests.py 93.50s user 60.71s system 71% cpu 3:35.47 total
Description | From | Last Updated |
---|---|---|
Something else to mention is that, as proof that these changes don't regress Python 2.7 and that they work on … |
chipx86 | |
We have a certain way we like to see content for review request summaries, descriptions, and Testing Done. The descriptions … |
chipx86 | |
You really don't need the entire output of the tests in the testing done. You can just say you ran … |
brennie | |
Can you revert this? In cases like this, we prefer the variable on its own line, to give room for … |
chipx86 | |
Same here. |
chipx86 | |
We ignore the pep8 tool here. These should always be aligned, no indentation. |
chipx86 | |
No indentation here, either. |
chipx86 | |
Nor here. |
chipx86 | |
Nor here. |
chipx86 | |
We actually shouldn't have a period at the end of this, since it's for a unit test. Remove that and … |
chipx86 | |
No indentation. |
chipx86 | |
Nor here. |
chipx86 | |
Nor these. Mind going through the rest of the change and undoing these? It will help. I don't want to … |
chipx86 | |
This can be changed to: if sys.platform.startswith(('win', 'cygwin')): |
chipx86 | |
In cases like this, we prefer the % on the following line, like: raise SCMError('...' % var) |
chipx86 | |
This should be undone. Logging arguments on the line after the string. |
chipx86 | |
The old way was preferable. |
chipx86 | |
Here, too. |
chipx86 | |
We prefer the old format. |
chipx86 | |
Shouldn't be indented. |
chipx86 | |
Can you rever this? We spread out our dictionaries, so that further changes don't affect as much code. |
chipx86 | |
Each line should have the r prefix. |
chipx86 | |
I'm not sure this is no longer the case, for Python 2 support. We needed this to fix a bug. … |
chipx86 | |
While split across more lines, the previous version was fine. Easier to scan. |
chipx86 | |
Please revert these. Long lines are fine if they're a URL, since we want them to be proper links. In … |
chipx86 | |
Individual test case docstrings should not end in a period (the ones that are "Testing XXXX"), because the test runner … |
david | |
Add a blank line above this one. |
david | |
Period here. |
david | |
Period here. |
david | |
Period here. |
david | |
Period here. |
david | |
Period here. |
david | |
Add a blank line above this one. |
david | |
Period here. |
david | |
Period here. |
david | |
Period here. |
david | |
Period here. |
david | |
Revert this change. |
david | |
Revert this change. |
david | |
Revert this change. |
david | |
Revert this change. |
david | |
Revert this change. |
david | |
Revert this change. |
david | |
Revert this change. |
david | |
Revert this change. |
david | |
This is copy/pasted output from the command. I don't think we should change it. |
david | |
This is copy/pasted output from the command. I don't think we should change it. |
david | |
Revert this change. |
david | |
Revert this change. |
david | |
Revert this change. |
david | |
Revert this change. |
david | |
Revert this change. |
david | |
Revert this change. |
david | |
Revert this change. |
david | |
Revert this change. |
david | |
Revert this change. |
david | |
This is a wildcard and so should be under the list of wildcards. |
brennie | |
Instead, how about: content.write(b'%s%s' % (six.text_type(self._fields[key]).encode('utf-8'), NEWLINE) |
brennie | |
Instead, how about: content.write(b'filename="%s"%s' % (filename.encode('utf-8'), NEWLINE)) |
brennie | |
The way this is wrapped is now more confusing. How about: content.write( six.text_type(self._fields[key]).encode('utf-8') + NEWLINE) |
david | |
To be consistent with our other configurations, let's do E121,E125,E129,E241 |
david | |
This still isn't how I suggested you wrap it. content.write( six.text_type(self._fields[key]).encode('utf-8') + NEWLINE) |
david | |
This can be a little bit more compact: if (git_top.startswith(('fatal:', 'cygdrive')) or not os.path.isdir(git_dir)): |
david | |
Extra line here isn't necessary unless there's a class docstring. |
david |
- Depends On:
-
-
-
We have a certain way we like to see content for review request summaries, descriptions, and Testing Done. The descriptions don't need to reference other review requests (the Depends On field is enough for this), and instead should focus solely on what this change is about. We typically use a format describing, at a medium-to-high level, the problem being addressed by a change and what was done to fix it.
A guide and examples are here: https://www.notion.so/reviewboard/Writing-Good-Change-Descriptions-10529e7c207743fa8ca90153d4b21fea
Mind updating the review requests to fit that format?
-
Can you revert this? In cases like this, we prefer the variable on its own line, to give room for expanding the string as necessary. Basically, when there's multiple lines of arguments, we tend to put each on its own line.
-
-
-
-
-
-
We actually shouldn't have a period at the end of this, since it's for a unit test. Remove that and the
"""
will fit on the previous line. -
-
-
Nor these.
Mind going through the rest of the change and undoing these? It will help. I don't want to flood you with comments :)
-
-
-
-
-
-
-
-
Can you rever this? We spread out our dictionaries, so that further changes don't affect as much code.
-
-
I'm not sure this is no longer the case, for Python 2 support. We needed this to fix a bug.
If this is for Python 3 support, a better option would be to do:
RB_MAIN = str('rbt')
This ensures a byte string on Python 2, Unicode string on Python 3. Given that, the comment should remain, but be expanded.
-
-
Please revert these. Long lines are fine if they're a URL, since we want them to be proper links.
In fact, all changes to this file should be reverted. It tracks an upstream package, and we don't want to make changes to it, as it's harder to figure out the differences between versions this way.
-
-
Something else to mention is that, as proof that these changes don't regress Python 2.7 and that they work on Python 3.4, 3.5, and 3.6 (our targets), we'd like to see new unit tests for anything not currently covered. If you have questions on this, please reach out to us, as we know the test coverage in RBTools is not currently as comprehensive as most of our software.
- Description:
-
Fix various PEP 8, sytle and PyFlakes issues.
~ This is the final change in the series.
~ https://reviews.reviewboard.org/r/9648/ ~ I've also included an exception for E129 in the setup.cfg to make it explicit in the codebase
~ that this is the expected style. - https://reviews.reviewboard.org/r/9649/ - https://reviews.reviewboard.org/r/9650/ - https://reviews.reviewboard.org/r/9651/ - https://reviews.reviewboard.org/r/9652/ - https://reviews.reviewboard.org/r/9653/ - https://reviews.reviewboard.org/r/9654/ - https://reviews.reviewboard.org/r/9655/ - Testing Done:
-
~ At this point flake8 and the unit tests should run and pass.
~ (%) flake8 -v tests rbtools
+ + flake8.checker MainProcess 409 INFO Making checkers
+ flake8.checker MainProcess 650 INFO Checking 79 files + flake8.main.application MainProcess 2483 INFO Finished running + flake8.main.application MainProcess 2484 INFO Reporting errors + flake8.main.application MainProcess 2485 INFO Found a total of 37 violations and reported 0 + + Note: I have all of the local changes to rbtools/utils/appdirs.py still, that's why there's no PEP8 issues for that file.
- Commit:
-
141270ed1a694a51fb4fb3c05b90fdb943d87d1b82f4c0109a81892cd95c2611c47bb2556775f934
Checks run (2 succeeded)
- Summary:
-
Fix various PEP 8, sytle and PyFlakes issuesFix various PEP 8, style and PyFlakes issues
- Commit:
-
82f4c0109a81892cd95c2611c47bb2556775f934c474fead6d21e5375e853b2ff768de5d1ae6a891
Checks run (2 succeeded)
- Change Summary:
-
Found a few additional spots missing blank lines.
- Commit:
-
c474fead6d21e5375e853b2ff768de5d1ae6a891a5ab6d3cb14ddc9007f96ea8c43008db9fc4393b
Checks run (2 succeeded)
- Change Summary:
-
After updating the setup.cfg I was able to catch the issues in contrib
- Testing Done:
-
(%) flake8 -v tests rbtools
flake8.checker MainProcess 409 INFO Making checkers
flake8.checker MainProcess 650 INFO Checking 79 files flake8.main.application MainProcess 2483 INFO Finished running flake8.main.application MainProcess 2484 INFO Reporting errors ~ flake8.main.application MainProcess 2485 INFO Found a total of 37 violations and reported 0 ~ flake8.main.application MainProcess 2485 INFO Found a total of 37 violations and reported 0 + ime ./tests/runtests.py [git:f7e978d...??]?? + /Volumes/Augie/solarmist/rbtools/lib/python2.7/site-packages/nose/pyversion.py:36: DeprecationWarning: The 'new' module has been removed in Python 3.0; use the 'types' module instead. + import new + /Volumes/Augie/solarmist/rbtools/lib/python2.7/site-packages/nose/plugins/prof.py:14: DeprecationWarning: The 'hotshot' module is not supported in 3.x, use the 'profile' module instead. + import hotshot + /Volumes/Augie/solarmist/rbtools/lib/python2.7/site-packages/nose/pyversion.py:49: DeprecationWarning: Overriding eq blocks inheritance of hash in 3.x + class Key(object): ~ Note: I have all of the local changes to rbtools/utils/appdirs.py still, that's why there's no PEP8 issues for that file.
~ 1 Testing the cache with a high max-age value ... /Volumes/Augie/solarmist/rbtools/rbtools/api/cache.py:479: DeprecationWarning: buffer() not supported in 3.x
+ + sqlite3.Binary(entry.response_body)))
+ ok + + 2 Testing the cache with a zero max-age value ... /Volumes/Augie/solarmist/rbtools/rbtools/api/cache.py:493: DeprecationWarning: buffer() not supported in 3.x
+ + sqlite3.Binary(entry.response_body), entry.url,
+ ok + + 3 Testing the cache with the must-revalidate control ... ok
+ + 4 Testing the cache with the no-store control ... ok
+ + 5 Testing the cache with the no-cache control ... ok
+ + 6 Testing the cache with the no-cache control and a specified ETag ... ok
+ + 7 Testing the cache with the no-cache control and an updated ETag ... ok
+ + 8 Testing the cache with the no-cache control ... ok
+ + 9 Testing the cache with the no-cache control and an updated Last-Modified header ... ok
+ + 10 Testing the cache with the Expires header in the past ... ok
+ + 11 Testing the cache with the Expires header in the future ... ok
+ + 12 Testing the cache with an Expires header that is overridden ... ok
+ + 13 Testing the cache with the Pragma: no-cache header ... ok
+ + 14 Testing writing to the cache with non-ASCII data ... ok
+ + 15 Testing the cache with the Vary header ... ok
+ + 16 Testing the cache with the Vary header and different requests ... ok
+ + 17 Testing Capabilities.has_capability with supported capability ... ok
+ + 18 Testing Capabilities.has_capability with partial capability path ... ok
+ + 19 Testing Capabilities.has_capability with unknown capability ... ok
+ + 20 Testing the default values ... ok
+ + 21 Testing the multipart form data generation ... ok
+ + 22 Testing the encoding of multipart form data with unicode and binary field data ... ok
+ + 23 Testing constructing a count resource ... ok
+ + 24 Testing constructing an item resource ... ok
+ + 25 Testing constructing a list resource ... ok
+ + 26 Testing constructing without guessing the resource token ... ok
+ + 27 Testing constructing a resource with a specific base class ... ok
+ + 28 Testing guessing the resource's token ... ok
+ + 29 Testing rewriting of extra_data__ parameters to create ... ok
+ + 30 Testing rewriting of exta_data__ parameters to update ... ok
+ + 31 Testing item resource fields ... ok
+ + 32 Testing item resource link generation ... ok
+ + 33 Testing access of a link field ... ok
+ + 34 Testing link resource link generation ... ok
+ + 35 Testing list resource lists ... ok
+ + 36 Testing access of a dictionary field ... ok
+ + 37 Testing iterating sub-fields of a dictionary field ... ok
+ + 38 Testing generation of methods for the root resource uri templates ... ok
+ + 39 Testing ReviewRequestResource.absolute_url with 'absolute_url' field ... ok
+ + 40 Testing ReviewRequestResource.absolute_url with generated fallback URL ... ok
+ + 41 Testing ReviewRequestResource.absolute_url with 'url' field ... ok
+ + 42 Testing BazaarClient diff with file exclusion ... ok
+ + 43 Testing BazaarClient diff with file exclusion in a subdirectory ... ok
+ + 44 Testing BazaarClient diff with file exclusion in the repo root ... ok
+ + 45 Testing BazaarClient diff with changes between a 2nd level descendant ... ok
+ + 46 Testing BazaarClient diff with changes only in the parent branch ... ok
+ + 47 Testing BazaarClient simple diff case ... ok
+ + 48 Testing BazaarClient simple diff with multiple commits case ... ok
+ + 49 Testing BazaarClient diff with specific files ... ok
+ + 50 Testing BazaarClient get_repository_info with child branch ... ok
+ + 51 Testing BazaarClient get_repository_info, no branch ... ok
+ + 52 Testing BazaarClient get_repository_info with original branch ... ok
+ + 53 Testing BazaarClient guessing summary and description ... ok
+ + 54 Testing BazaarClient guessing summary and description for grand parent branch ... ok
+ + 55 Testing BazaarClient guessing summary and description with a revision range ... ok
+ + 56 Testing BazaarClient.parse_revision_spec with no specified revisions ... ok
+ + 57 Testing BazaarClient.parse_revision_spec with one specified revision ... ok
+ + 58 Testing BazaarClient.parse_revision_spec with one specified revision and a parent diff ... ok
+ + 59 Testing BazaarClient.parse_revision_spec with R1..R2 syntax ... ok
+ + 60 Testing BazaarClient.parse_revision_spec with two revisions ... ok
+ + 61 Testing BazaarClient parse_revision_spec with too many revisions ... ok
+ + 62 Testing GitClient.create_commit with all_files set to True. ... ok
+ + 63 Testing GitClient.create_commit with run_editor set to True. ... ok
+ + 64 Testing GitClient.create_commit with all_files set to False. ... ok
+ + 65 Testing GitClient.create_commit with run_editor set to False. ... ok
+ + 66 Testing GitClient.delete_branch with merged_only set to True. ... ok
+ + 67 Testing GitClient.delete_branch with merged_only set to False. ... ok
+ + 68 Testing GitClient diff with divergent branches ... ok
+ + 69 Testing GitClient simple diff with file exclusion ... ok
+ + 70 Testing GitClient simple diff with file exclusion in a subdir ... ok
+ + 71 Testing GitClient diff with file exclusion in the repo root ... ok
+ + 72 Testing GitClient.parse_revision_spec with target branch off a tracking branch not aligned with the remote ... ok
+ + 73 Testing GitClient.parse_revision_spec with a target branch not up-to-date with a remote branch ... ok
+ + 74 Testing GitClient.parse_revision_spec with a target branch posted off a tracking branch that merged another tracking branch ... ok
+ + 75 Testing GitClient.parse_revision_spec with a target branch that merged a tracking branch off another tracking branch ... ok
+ + 76 Testing GitClient.parse_revision_spec with a target branch that has branches from different remotes in its path ... ok
+ + 77 Testing GitClient.parse_revision_spec with target branch off a tracking branch aligned with the remote ... ok
+ + 78 Testing GitClient.parse_revision_spec with a target branch posted off a remote branch that is aligned to the same commit as another remote branch ... ok
+ + 79 Testing GitClient.parse_revision_spec with a target branch posted off a remote branch without any tracking branches ... ok
+ + 80 Testing GitClient.parse_revision_spec with target branch off a branch not properly tracking the remote ... ok
+ + 81 Testing GitClient.parse_revision_spec with target branch off a tracking branch with changes since the remote ... ok
+ + 82 Testing GitClient diff with a local tracking branch ... ok
+ + 83 Testing GitClient simple diff case ... ok
+ + 84 Testing GitClient simple diff with multiple commits case ... ok
+ + 85 Testing GitClient diff with tracking branch that has slash in its name ... ok
+ + 86 Testing GitClient diff with a tracking branch, but no origin remote ... ok
+ + 87 Testing GitClient diff with option override for tracking branch ... ok
+ + 88 Testing GitClient.get_raw_commit_message ... ok
+ + 89 Testing GitClient get_repository_info, simple case ... ok
+ + 90 Testing GitClient.merge with an invalid destination branch. ... ok
+ + 91 Testing GitClient.merge with an invalid target branch. ... ok
+ + 92 Testing GitClient.merge with squash set to True. ... ok
+ + 93 Testing GitClient.merge with squash set to False. ... ok
+ + 94 Testing GitClient.parse_revision_spec with no specified revisions ... ok
+ + 95 Testing GitClient.parse_revision_spec with no specified revisions and a parent diff ... ok
+ + 96 Testing GitClient.parse_revision_spec with one specified revision ... ok
+ + 97 Testing GitClient.parse_revision_spec with one specified revision and a parent diff ... ok
+ + 98 Testing GitClient.parse_revision_spec with diff-since-merge syntax ... ok
+ + 99 Testing GitClient.parse_revision_spec with diff-since syntax ... ok
+ + 100 Testing GitClient.parse_revision_spec with two specified revisions ... ok
+ + 101 Testing GitClient.push_upstream with 'git push' disabled. ... ok
+ + 102 Testing GitClient.push_upstream with an invalid remote branch. ... ok
+ + 103 Testing GitClient scan_for_server using repo property ... ok
+ + 104 Testing GitClient scan_for_server, .reviewboardrc case ... ok
+ + 105 Testing GitClient scan_for_server, simple case ... ok
+ + 106 Testing GitClient parse_revision_spec with too many revisions ... ok
+ + 107 Testing MercurialClient diff with diverged branch ... ok
+ + 108 Testing MercurialClient diff with file exclusion ... ok
+ + 109 Testing MercurialClient diff with empty file exclusion ... ok
+ + 110 Testing MercurialClient parent diffs with a diverged branch ... ok
+ + 111 Testing MercurialClient parent diffs with a simple case ... ok
+ + 112 Testing MercurialClient parent diffs with a diverged branch and --parent option ... ok
+ + 113 Testing MercurialClient diff, simple case ... ok
+ + 114 Testing MercurialClient diff with multiple commits ... ok
+ + 115 Testing MercurialClient get_repository_info, simple case ... ok
+ + 116 Testing MercurialClient guess summary & description 1 commit ... ok
+ + 117 Testing MercurialClient guess summary & description middle commit ... ok
+ + 118 Testing MercurialClient guess summary & description 3 commits ... ok
+ + 119 Testing MercurialClient guess summary & description 2 commits ... ok
+ + 120 Testing MercurialClient.parse_revision_spec with no arguments ... ok
+ + 121 Testing MercurialClient.parse_revision_spec with one revision ... ok
+ + 122 Testing MercurialClient.parse_revision_spec with r1::r2 syntax ... ok
+ + 123 Testing MercurialClient.parse_revision_spec with r1..r2 syntax ... ok
+ + 124 Testing MercurialClient.parse_revision_spec with parent base ... ok
+ + 125 Testing MercurialClient.parse_revision_spec with two revisions ... ok
+ + 126 Testing MercurialClient scan_for_server when in .reviewboardrc ... ok
+ + 127 Testing MercurialClient scan_for_server, simple case ... ok
+ + 128 Testing MercurialClient scan_for_server when present in hgrc ... ok
+ + 129 Testing MercurialClient (+svn) _calculate_hgsubversion_repository_info properly determines repository and base paths ... ok
+ + 130 Testing MercurialClient (+svn) diff specifying a revision ... ok
+ + 131 Testing MercurialClient (+svn) diff, simple case ... ok
+ + 132 Testing MercurialClient (+svn) diff with multiple commits ... ok
+ + 133 Testing MercurialClient (+svn) get_repository_info, simple case ... ok
+ + 134 Testing MercurialClient (+svn) scan_for_server in svn property ... ok
+ + 135 Testing MercurialClient (+svn) scan_for_server in .reviewboardrc ... ok
+ + 136 Testing MercurialClient (+svn) scan_for_server, simple case ... ok
+ + 137 Testing P4Wrapper.counters ... ok
+ + 138 Testing P4Wrapper.info ... ok
+ + 139 Testing PerforceClient.normalize_exclude_patterns ... ok
+ + 140 Testing PerforceClient.diff with a submitted changelist ... ok
+ + 141 Testing PerforceClient.diff with moved files and capability off ... ok
+ + 142 Testing PerforceClient.diff with moved files and capability on ... ok
+ + 143 Testing PerforceClient.diff with a pending changelist ... ok
+ + 144 Testing PerforceClient.parse_revision_spec with invalid specifications ... ok
+ + 145 Testing PerforceClient.parse_revision_spec with no specified revisions ... ok
+ + 146 Testing PerforceClient.parse_revision_spec with a pending changelist ... ok
+ + 147 Testing PerforceClient.parse_revision_spec with a shelved changelist ... ok
+ + 148 Testing PerforceClient.parse_revision_spec with a submitted changelist ... ok
+ + 149 Testing PerforceClient.parse_revision_spec with two changelists ... ok
+ + 150 Testing PerforceClient.get_repository_info ... ok
+ + 151 Testing PerforceClient.get_repository_info outside client root ... ok
+ + 152 Testing PerforceClient.scan_for_server_counter with reviewboard.url ... ok
+ + 153 Testing PerforceClient.scan_for_server_counter with encoded reviewboard.url.http:|| ... ok
+ + 154 Testing SVNClient diff with file exclude patterns ... ok
+ + 155 Testing SVNClient diff with exclude patterns in a subdir ... ok
+ + 156 Testing SVNClient diff with repo exclude patterns in a subdir ... ok
+ + 157 Testing SVNClient diff with a non-utf8 file ... ok
+ + 158 Testing SVNClient diff with a non-utf8 filename via repository_url option ... ok
+ + 159 Testing SVNClient.get_commit_message with a single committed revision ... ok
+ + 160 Testing SVNClient.get_commit_message with multiple committed revisions ... ok
+ + 161 Testing SVNClient.get_commit_message with a working copy change ... ok
+ + 162 Testing SVNClient.history_scheduled_with_commit nominal cases ... ok
+ + 163 Testing SVNClient.history_scheduled_with_commit with exclude file ... ok
+ + 164 Testing SVNClient.history_scheduled_with_commit is bypassed when diff is not for local modifications in a working copy ... ok
+ + 165 Testing SVNClient.parse_revision_spec with invalid specifications ... ok
+ + 166 Testing SVNClient.parse_revision_spec with no specified revisions ... ok
+ + 167 Testing SVNClient.parse_revision_spec with a non-utf8 log entry ... ok
+ + 168 Testing SVNClient.parse_revision_spec with R1:R2 syntax ... ok
+ + 169 Testing SVNClient.parse_revision_spec with one specified numeric revision ... ok
+ + 170 Testing SVNClient.parse_revision_spec with one specified changelist revision ... ok
+ + 171 Testing SVNClient.parse_revision_spec with one specified invalid changelist revision ... ok
+ + 172 Testing SVNClient.parse_revision_spec with one revision and a repository URL ... ok
+ + 173 Testing SVNClient.parse_revision_spec with two revisions ... ok
+ + 174 Testing SVNClient.parse_revision_spec with R1:R2 syntax and a repository URL ... ok
+ + 175 Test diff with removal of lines that look like headers ... ok
+ + 176 Testing SVNClient identical diff generated from root, subdirectory, and via target ... ok
+ + 177 Testing SVNClient with --show-copies-as-adds functionality disabled ... ok
+ + 178 Testing SVNClient with --show-copies-as-adds functionality enabled ... ok
+ + 179 Testing SVNRepositoryInfo.find_server_repository_info with mirror_path matching ... ok
+ + 180 Testing SVNRepositoryInfo.find_server_repository_info with path matching ... ok
+ + 181 Testing SVNRepositoryInfo.find_server_repository_info with UUID matching ... ok
+ + 182 Testing SVNRepositoryInfo._get_relative_path ... ok
+ + 183 Testing argument duplication with rbt post --field myField=test --description test ... ok
+ + 184 Testing multiple delimiters with rbt post --field myField=this=string=has=equals=signs ... ok
+ + 185 Testing built-in fields through extra_fields with rbt post --field description=testing --field summary='native testing' --field testing-done='No tests' ... ok
+ + 186 Testing setting target group via config file with rbt post ... ok
+ + 187 Testing setting target person via config file with rbt post ... ok
+ + 188 Testing multiple extra field arguments with rbt post --field foo=bar --field desc=new ... ok
+ + 189 Testing setting target group on update via config file with rbt post --review-request-id=12345 ... ok
+ + 190 Testing setting target person on update via config file with rbt post --review-request-id=12345 ... ok
+ + 191 Testing one extra field argument with rbt post --field foo=bar ... ok
+ + 192 Testing setting the target group with rbt post --target-groups=test_group ... ok
+ + 193 Testing setting the target group on an update with rbt post --target-groups=test_group --review-request-id=12345 ... ok
+ + 194 Testing setting the target person with rbt post --target-people=test_person ... ok
+ + 195 Testing setting the target person on an update with rbt post --target-people=test_person --review-request-id=12345 ... ok
+ + 196 Testing built-in fields through extra_fields with rbt post --field description and rbt post --field testing_done='No tests' ... ok
+ + 197 Testing variable substitution with alphabetic variables ... ok
+ + 198 Testing alias substitution with a slash at the end of the string ... ok
+ + 199 Testing variable substitution where no variables are supplied ... ok
+ + 200 Testing alias substitution with bad quotes. ... ok
+ + 201 Testing variable substitution in rbtools aliases ... ok
+ + 202 Testing variable substitution where the argument isn't supplied ... ok
+ + 203 Testing variable substitution with the $* variable ... ok
+ + 204 Testing $* variable substitution with whitespace-containing args ... ok
+ + 205 Testing variable substitution where multiple variables appear ... ok
+ + 206 Testing 'check_install' method. ... ok
+ + 207 Testing 'execute' method. ... ok
+ + 208 Testing 'is_valid_version' method. ... ok
+ + 209 Testing 'make_empty_files' method. ... ok
+ + 210 Testing 'make_tempfile' method. ... ok
+ + + + Ran 210 tests in 215.007s
+ + OK
+ ./tests/runtests.py 93.50s user 60.71s system 71% cpu 3:35.47 total - Depends On:
-
- Commit:
a5ab6d3cb14ddc9007f96ea8c43008db9fc4393b94b1c1ce7355620cf101e17d9cb74dc03a7e5618- Diff:
Revision 5 (+92 -74)
Checks run (2 succeeded)
flake8 passed.JSHint passed.
- Testing Done:
-
(%) flake8 -v tests rbtools
flake8.checker MainProcess 409 INFO Making checkers
flake8.checker MainProcess 650 INFO Checking 79 files flake8.main.application MainProcess 2483 INFO Finished running flake8.main.application MainProcess 2484 INFO Reporting errors ~ flake8.main.application MainProcess 2485 INFO Found a total of 37 violations and reported 0 ~ ime ./tests/runtests.py [git:f7e978d...??]?? ~ flake8.main.application MainProcess 2485 INFO Found a total of 37 violations and reported 0 ~ + Note: These violations were in appdirs.py and the docs directory.
+ + time ./tests/runtests.py
/Volumes/Augie/solarmist/rbtools/lib/python2.7/site-packages/nose/pyversion.py:36: DeprecationWarning: The 'new' module has been removed in Python 3.0; use the 'types' module instead. import new /Volumes/Augie/solarmist/rbtools/lib/python2.7/site-packages/nose/plugins/prof.py:14: DeprecationWarning: The 'hotshot' module is not supported in 3.x, use the 'profile' module instead. import hotshot /Volumes/Augie/solarmist/rbtools/lib/python2.7/site-packages/nose/pyversion.py:49: DeprecationWarning: Overriding eq blocks inheritance of hash in 3.x class Key(object): 1 Testing the cache with a high max-age value ... /Volumes/Augie/solarmist/rbtools/rbtools/api/cache.py:479: DeprecationWarning: buffer() not supported in 3.x
sqlite3.Binary(entry.response_body)))
ok 2 Testing the cache with a zero max-age value ... /Volumes/Augie/solarmist/rbtools/rbtools/api/cache.py:493: DeprecationWarning: buffer() not supported in 3.x
sqlite3.Binary(entry.response_body), entry.url,
ok 3 Testing the cache with the must-revalidate control ... ok
4 Testing the cache with the no-store control ... ok
5 Testing the cache with the no-cache control ... ok
6 Testing the cache with the no-cache control and a specified ETag ... ok
7 Testing the cache with the no-cache control and an updated ETag ... ok
8 Testing the cache with the no-cache control ... ok
9 Testing the cache with the no-cache control and an updated Last-Modified header ... ok
10 Testing the cache with the Expires header in the past ... ok
11 Testing the cache with the Expires header in the future ... ok
12 Testing the cache with an Expires header that is overridden ... ok
13 Testing the cache with the Pragma: no-cache header ... ok
14 Testing writing to the cache with non-ASCII data ... ok
15 Testing the cache with the Vary header ... ok
16 Testing the cache with the Vary header and different requests ... ok
17 Testing Capabilities.has_capability with supported capability ... ok
18 Testing Capabilities.has_capability with partial capability path ... ok
19 Testing Capabilities.has_capability with unknown capability ... ok
20 Testing the default values ... ok
21 Testing the multipart form data generation ... ok
22 Testing the encoding of multipart form data with unicode and binary field data ... ok
23 Testing constructing a count resource ... ok
24 Testing constructing an item resource ... ok
25 Testing constructing a list resource ... ok
26 Testing constructing without guessing the resource token ... ok
27 Testing constructing a resource with a specific base class ... ok
28 Testing guessing the resource's token ... ok
29 Testing rewriting of extra_data__ parameters to create ... ok
30 Testing rewriting of exta_data__ parameters to update ... ok
31 Testing item resource fields ... ok
32 Testing item resource link generation ... ok
33 Testing access of a link field ... ok
34 Testing link resource link generation ... ok
35 Testing list resource lists ... ok
36 Testing access of a dictionary field ... ok
37 Testing iterating sub-fields of a dictionary field ... ok
38 Testing generation of methods for the root resource uri templates ... ok
39 Testing ReviewRequestResource.absolute_url with 'absolute_url' field ... ok
40 Testing ReviewRequestResource.absolute_url with generated fallback URL ... ok
41 Testing ReviewRequestResource.absolute_url with 'url' field ... ok
42 Testing BazaarClient diff with file exclusion ... ok
43 Testing BazaarClient diff with file exclusion in a subdirectory ... ok
44 Testing BazaarClient diff with file exclusion in the repo root ... ok
45 Testing BazaarClient diff with changes between a 2nd level descendant ... ok
46 Testing BazaarClient diff with changes only in the parent branch ... ok
47 Testing BazaarClient simple diff case ... ok
48 Testing BazaarClient simple diff with multiple commits case ... ok
49 Testing BazaarClient diff with specific files ... ok
50 Testing BazaarClient get_repository_info with child branch ... ok
51 Testing BazaarClient get_repository_info, no branch ... ok
52 Testing BazaarClient get_repository_info with original branch ... ok
53 Testing BazaarClient guessing summary and description ... ok
54 Testing BazaarClient guessing summary and description for grand parent branch ... ok
55 Testing BazaarClient guessing summary and description with a revision range ... ok
56 Testing BazaarClient.parse_revision_spec with no specified revisions ... ok
57 Testing BazaarClient.parse_revision_spec with one specified revision ... ok
58 Testing BazaarClient.parse_revision_spec with one specified revision and a parent diff ... ok
59 Testing BazaarClient.parse_revision_spec with R1..R2 syntax ... ok
60 Testing BazaarClient.parse_revision_spec with two revisions ... ok
61 Testing BazaarClient parse_revision_spec with too many revisions ... ok
62 Testing GitClient.create_commit with all_files set to True. ... ok
63 Testing GitClient.create_commit with run_editor set to True. ... ok
64 Testing GitClient.create_commit with all_files set to False. ... ok
65 Testing GitClient.create_commit with run_editor set to False. ... ok
66 Testing GitClient.delete_branch with merged_only set to True. ... ok
67 Testing GitClient.delete_branch with merged_only set to False. ... ok
68 Testing GitClient diff with divergent branches ... ok
69 Testing GitClient simple diff with file exclusion ... ok
70 Testing GitClient simple diff with file exclusion in a subdir ... ok
71 Testing GitClient diff with file exclusion in the repo root ... ok
72 Testing GitClient.parse_revision_spec with target branch off a tracking branch not aligned with the remote ... ok
73 Testing GitClient.parse_revision_spec with a target branch not up-to-date with a remote branch ... ok
74 Testing GitClient.parse_revision_spec with a target branch posted off a tracking branch that merged another tracking branch ... ok
75 Testing GitClient.parse_revision_spec with a target branch that merged a tracking branch off another tracking branch ... ok
76 Testing GitClient.parse_revision_spec with a target branch that has branches from different remotes in its path ... ok
77 Testing GitClient.parse_revision_spec with target branch off a tracking branch aligned with the remote ... ok
78 Testing GitClient.parse_revision_spec with a target branch posted off a remote branch that is aligned to the same commit as another remote branch ... ok
79 Testing GitClient.parse_revision_spec with a target branch posted off a remote branch without any tracking branches ... ok
80 Testing GitClient.parse_revision_spec with target branch off a branch not properly tracking the remote ... ok
81 Testing GitClient.parse_revision_spec with target branch off a tracking branch with changes since the remote ... ok
82 Testing GitClient diff with a local tracking branch ... ok
83 Testing GitClient simple diff case ... ok
84 Testing GitClient simple diff with multiple commits case ... ok
85 Testing GitClient diff with tracking branch that has slash in its name ... ok
86 Testing GitClient diff with a tracking branch, but no origin remote ... ok
87 Testing GitClient diff with option override for tracking branch ... ok
88 Testing GitClient.get_raw_commit_message ... ok
89 Testing GitClient get_repository_info, simple case ... ok
90 Testing GitClient.merge with an invalid destination branch. ... ok
91 Testing GitClient.merge with an invalid target branch. ... ok
92 Testing GitClient.merge with squash set to True. ... ok
93 Testing GitClient.merge with squash set to False. ... ok
94 Testing GitClient.parse_revision_spec with no specified revisions ... ok
95 Testing GitClient.parse_revision_spec with no specified revisions and a parent diff ... ok
96 Testing GitClient.parse_revision_spec with one specified revision ... ok
97 Testing GitClient.parse_revision_spec with one specified revision and a parent diff ... ok
98 Testing GitClient.parse_revision_spec with diff-since-merge syntax ... ok
99 Testing GitClient.parse_revision_spec with diff-since syntax ... ok
100 Testing GitClient.parse_revision_spec with two specified revisions ... ok
101 Testing GitClient.push_upstream with 'git push' disabled. ... ok
102 Testing GitClient.push_upstream with an invalid remote branch. ... ok
103 Testing GitClient scan_for_server using repo property ... ok
104 Testing GitClient scan_for_server, .reviewboardrc case ... ok
105 Testing GitClient scan_for_server, simple case ... ok
106 Testing GitClient parse_revision_spec with too many revisions ... ok
107 Testing MercurialClient diff with diverged branch ... ok
108 Testing MercurialClient diff with file exclusion ... ok
109 Testing MercurialClient diff with empty file exclusion ... ok
110 Testing MercurialClient parent diffs with a diverged branch ... ok
111 Testing MercurialClient parent diffs with a simple case ... ok
112 Testing MercurialClient parent diffs with a diverged branch and --parent option ... ok
113 Testing MercurialClient diff, simple case ... ok
114 Testing MercurialClient diff with multiple commits ... ok
115 Testing MercurialClient get_repository_info, simple case ... ok
116 Testing MercurialClient guess summary & description 1 commit ... ok
117 Testing MercurialClient guess summary & description middle commit ... ok
118 Testing MercurialClient guess summary & description 3 commits ... ok
119 Testing MercurialClient guess summary & description 2 commits ... ok
120 Testing MercurialClient.parse_revision_spec with no arguments ... ok
121 Testing MercurialClient.parse_revision_spec with one revision ... ok
122 Testing MercurialClient.parse_revision_spec with r1::r2 syntax ... ok
123 Testing MercurialClient.parse_revision_spec with r1..r2 syntax ... ok
124 Testing MercurialClient.parse_revision_spec with parent base ... ok
125 Testing MercurialClient.parse_revision_spec with two revisions ... ok
126 Testing MercurialClient scan_for_server when in .reviewboardrc ... ok
127 Testing MercurialClient scan_for_server, simple case ... ok
128 Testing MercurialClient scan_for_server when present in hgrc ... ok
129 Testing MercurialClient (+svn) _calculate_hgsubversion_repository_info properly determines repository and base paths ... ok
130 Testing MercurialClient (+svn) diff specifying a revision ... ok
131 Testing MercurialClient (+svn) diff, simple case ... ok
132 Testing MercurialClient (+svn) diff with multiple commits ... ok
133 Testing MercurialClient (+svn) get_repository_info, simple case ... ok
134 Testing MercurialClient (+svn) scan_for_server in svn property ... ok
135 Testing MercurialClient (+svn) scan_for_server in .reviewboardrc ... ok
136 Testing MercurialClient (+svn) scan_for_server, simple case ... ok
137 Testing P4Wrapper.counters ... ok
138 Testing P4Wrapper.info ... ok
139 Testing PerforceClient.normalize_exclude_patterns ... ok
140 Testing PerforceClient.diff with a submitted changelist ... ok
141 Testing PerforceClient.diff with moved files and capability off ... ok
142 Testing PerforceClient.diff with moved files and capability on ... ok
143 Testing PerforceClient.diff with a pending changelist ... ok
144 Testing PerforceClient.parse_revision_spec with invalid specifications ... ok
145 Testing PerforceClient.parse_revision_spec with no specified revisions ... ok
146 Testing PerforceClient.parse_revision_spec with a pending changelist ... ok
147 Testing PerforceClient.parse_revision_spec with a shelved changelist ... ok
148 Testing PerforceClient.parse_revision_spec with a submitted changelist ... ok
149 Testing PerforceClient.parse_revision_spec with two changelists ... ok
150 Testing PerforceClient.get_repository_info ... ok
151 Testing PerforceClient.get_repository_info outside client root ... ok
152 Testing PerforceClient.scan_for_server_counter with reviewboard.url ... ok
153 Testing PerforceClient.scan_for_server_counter with encoded reviewboard.url.http:|| ... ok
154 Testing SVNClient diff with file exclude patterns ... ok
155 Testing SVNClient diff with exclude patterns in a subdir ... ok
156 Testing SVNClient diff with repo exclude patterns in a subdir ... ok
157 Testing SVNClient diff with a non-utf8 file ... ok
158 Testing SVNClient diff with a non-utf8 filename via repository_url option ... ok
159 Testing SVNClient.get_commit_message with a single committed revision ... ok
160 Testing SVNClient.get_commit_message with multiple committed revisions ... ok
161 Testing SVNClient.get_commit_message with a working copy change ... ok
162 Testing SVNClient.history_scheduled_with_commit nominal cases ... ok
163 Testing SVNClient.history_scheduled_with_commit with exclude file ... ok
164 Testing SVNClient.history_scheduled_with_commit is bypassed when diff is not for local modifications in a working copy ... ok
165 Testing SVNClient.parse_revision_spec with invalid specifications ... ok
166 Testing SVNClient.parse_revision_spec with no specified revisions ... ok
167 Testing SVNClient.parse_revision_spec with a non-utf8 log entry ... ok
168 Testing SVNClient.parse_revision_spec with R1:R2 syntax ... ok
169 Testing SVNClient.parse_revision_spec with one specified numeric revision ... ok
170 Testing SVNClient.parse_revision_spec with one specified changelist revision ... ok
171 Testing SVNClient.parse_revision_spec with one specified invalid changelist revision ... ok
172 Testing SVNClient.parse_revision_spec with one revision and a repository URL ... ok
173 Testing SVNClient.parse_revision_spec with two revisions ... ok
174 Testing SVNClient.parse_revision_spec with R1:R2 syntax and a repository URL ... ok
175 Test diff with removal of lines that look like headers ... ok
176 Testing SVNClient identical diff generated from root, subdirectory, and via target ... ok
177 Testing SVNClient with --show-copies-as-adds functionality disabled ... ok
178 Testing SVNClient with --show-copies-as-adds functionality enabled ... ok
179 Testing SVNRepositoryInfo.find_server_repository_info with mirror_path matching ... ok
180 Testing SVNRepositoryInfo.find_server_repository_info with path matching ... ok
181 Testing SVNRepositoryInfo.find_server_repository_info with UUID matching ... ok
182 Testing SVNRepositoryInfo._get_relative_path ... ok
183 Testing argument duplication with rbt post --field myField=test --description test ... ok
184 Testing multiple delimiters with rbt post --field myField=this=string=has=equals=signs ... ok
185 Testing built-in fields through extra_fields with rbt post --field description=testing --field summary='native testing' --field testing-done='No tests' ... ok
186 Testing setting target group via config file with rbt post ... ok
187 Testing setting target person via config file with rbt post ... ok
188 Testing multiple extra field arguments with rbt post --field foo=bar --field desc=new ... ok
189 Testing setting target group on update via config file with rbt post --review-request-id=12345 ... ok
190 Testing setting target person on update via config file with rbt post --review-request-id=12345 ... ok
191 Testing one extra field argument with rbt post --field foo=bar ... ok
192 Testing setting the target group with rbt post --target-groups=test_group ... ok
193 Testing setting the target group on an update with rbt post --target-groups=test_group --review-request-id=12345 ... ok
194 Testing setting the target person with rbt post --target-people=test_person ... ok
195 Testing setting the target person on an update with rbt post --target-people=test_person --review-request-id=12345 ... ok
196 Testing built-in fields through extra_fields with rbt post --field description and rbt post --field testing_done='No tests' ... ok
197 Testing variable substitution with alphabetic variables ... ok
198 Testing alias substitution with a slash at the end of the string ... ok
199 Testing variable substitution where no variables are supplied ... ok
200 Testing alias substitution with bad quotes. ... ok
201 Testing variable substitution in rbtools aliases ... ok
202 Testing variable substitution where the argument isn't supplied ... ok
203 Testing variable substitution with the $* variable ... ok
204 Testing $* variable substitution with whitespace-containing args ... ok
205 Testing variable substitution where multiple variables appear ... ok
206 Testing 'check_install' method. ... ok
207 Testing 'execute' method. ... ok
208 Testing 'is_valid_version' method. ... ok
209 Testing 'make_empty_files' method. ... ok
210 Testing 'make_tempfile' method. ... ok
Ran 210 tests in 215.007s
OK
./tests/runtests.py 93.50s user 60.71s system 71% cpu 3:35.47 total
- Testing Done:
-
(%) flake8 -v tests rbtools
flake8.checker MainProcess 409 INFO Making checkers
flake8.checker MainProcess 650 INFO Checking 79 files flake8.main.application MainProcess 2483 INFO Finished running flake8.main.application MainProcess 2484 INFO Reporting errors flake8.main.application MainProcess 2485 INFO Found a total of 37 violations and reported 0 Note: These violations were in appdirs.py and the docs directory.
time ./tests/runtests.py
/Volumes/Augie/solarmist/rbtools/lib/python2.7/site-packages/nose/pyversion.py:36: DeprecationWarning: The 'new' module has been removed in Python 3.0; use the 'types' module instead. import new /Volumes/Augie/solarmist/rbtools/lib/python2.7/site-packages/nose/plugins/prof.py:14: DeprecationWarning: The 'hotshot' module is not supported in 3.x, use the 'profile' module instead. import hotshot ~ /Volumes/Augie/solarmist/rbtools/lib/python2.7/site-packages/nose/pyversion.py:49: DeprecationWarning: Overriding eq blocks inheritance of hash in 3.x ~ class Key(object): ~ ~ 1 Testing the cache with a high max-age value ... /Volumes/Augie/solarmist/rbtools/rbtools/api/cache.py:479: DeprecationWarning: buffer() not supported in 3.x
~ ~ sqlite3.Binary(entry.response_body)))
~ /Volumes/Augie/solarmist/rbtools/lib/python2.7/site-packages/nose/pyversion.py:49: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x ~ class Key(object): ~ #1 Testing the cache with a high max-age value ... /Volumes/Augie/solarmist/rbtools/rbtools/api/cache.py:479: DeprecationWarning: buffer() not supported in 3.x ~ sqlite3.Binary(entry.response_body))) ~ ok ~ #2 Testing the cache with a zero max-age value ... /Volumes/Augie/solarmist/rbtools/rbtools/api/cache.py:493: DeprecationWarning: buffer() not supported in 3.x + sqlite3.Binary(entry.response_body), entry.url, ok - 2 Testing the cache with a zero max-age value ... /Volumes/Augie/solarmist/rbtools/rbtools/api/cache.py:493: DeprecationWarning: buffer() not supported in 3.x
- - sqlite3.Binary(entry.response_body), entry.url,
- ok - - 3 Testing the cache with the must-revalidate control ... ok
- - 4 Testing the cache with the no-store control ... ok
- - 5 Testing the cache with the no-cache control ... ok
- - 6 Testing the cache with the no-cache control and a specified ETag ... ok
- - 7 Testing the cache with the no-cache control and an updated ETag ... ok
- - 8 Testing the cache with the no-cache control ... ok
- - 9 Testing the cache with the no-cache control and an updated Last-Modified header ... ok
- - 10 Testing the cache with the Expires header in the past ... ok
- - 11 Testing the cache with the Expires header in the future ... ok
- - 12 Testing the cache with an Expires header that is overridden ... ok
- - 13 Testing the cache with the Pragma: no-cache header ... ok
- - 14 Testing writing to the cache with non-ASCII data ... ok
- - 15 Testing the cache with the Vary header ... ok
- - 16 Testing the cache with the Vary header and different requests ... ok
- - 17 Testing Capabilities.has_capability with supported capability ... ok
- - 18 Testing Capabilities.has_capability with partial capability path ... ok
- - 19 Testing Capabilities.has_capability with unknown capability ... ok
- - 20 Testing the default values ... ok
- - 21 Testing the multipart form data generation ... ok
- - 22 Testing the encoding of multipart form data with unicode and binary field data ... ok
- - 23 Testing constructing a count resource ... ok
- - 24 Testing constructing an item resource ... ok
- - 25 Testing constructing a list resource ... ok
- - 26 Testing constructing without guessing the resource token ... ok
- - 27 Testing constructing a resource with a specific base class ... ok
- - 28 Testing guessing the resource's token ... ok
- - 29 Testing rewriting of extra_data__ parameters to create ... ok
- - 30 Testing rewriting of exta_data__ parameters to update ... ok
- - 31 Testing item resource fields ... ok
- - 32 Testing item resource link generation ... ok
- - 33 Testing access of a link field ... ok
- - 34 Testing link resource link generation ... ok
- - 35 Testing list resource lists ... ok
- - 36 Testing access of a dictionary field ... ok
- - 37 Testing iterating sub-fields of a dictionary field ... ok
- - 38 Testing generation of methods for the root resource uri templates ... ok
- - 39 Testing ReviewRequestResource.absolute_url with 'absolute_url' field ... ok
- - 40 Testing ReviewRequestResource.absolute_url with generated fallback URL ... ok
- - 41 Testing ReviewRequestResource.absolute_url with 'url' field ... ok
- - 42 Testing BazaarClient diff with file exclusion ... ok
- - 43 Testing BazaarClient diff with file exclusion in a subdirectory ... ok
- - 44 Testing BazaarClient diff with file exclusion in the repo root ... ok
- - 45 Testing BazaarClient diff with changes between a 2nd level descendant ... ok
- - 46 Testing BazaarClient diff with changes only in the parent branch ... ok
- - 47 Testing BazaarClient simple diff case ... ok
- - 48 Testing BazaarClient simple diff with multiple commits case ... ok
- - 49 Testing BazaarClient diff with specific files ... ok
- - 50 Testing BazaarClient get_repository_info with child branch ... ok
- - 51 Testing BazaarClient get_repository_info, no branch ... ok
- - 52 Testing BazaarClient get_repository_info with original branch ... ok
- - 53 Testing BazaarClient guessing summary and description ... ok
- - 54 Testing BazaarClient guessing summary and description for grand parent branch ... ok
- - 55 Testing BazaarClient guessing summary and description with a revision range ... ok
- - 56 Testing BazaarClient.parse_revision_spec with no specified revisions ... ok
- - 57 Testing BazaarClient.parse_revision_spec with one specified revision ... ok
- - 58 Testing BazaarClient.parse_revision_spec with one specified revision and a parent diff ... ok
- - 59 Testing BazaarClient.parse_revision_spec with R1..R2 syntax ... ok
- - 60 Testing BazaarClient.parse_revision_spec with two revisions ... ok
- - 61 Testing BazaarClient parse_revision_spec with too many revisions ... ok
- - 62 Testing GitClient.create_commit with all_files set to True. ... ok
- - 63 Testing GitClient.create_commit with run_editor set to True. ... ok
- - 64 Testing GitClient.create_commit with all_files set to False. ... ok
- - 65 Testing GitClient.create_commit with run_editor set to False. ... ok
- - 66 Testing GitClient.delete_branch with merged_only set to True. ... ok
- - 67 Testing GitClient.delete_branch with merged_only set to False. ... ok
- - 68 Testing GitClient diff with divergent branches ... ok
- - 69 Testing GitClient simple diff with file exclusion ... ok
- - 70 Testing GitClient simple diff with file exclusion in a subdir ... ok
- - 71 Testing GitClient diff with file exclusion in the repo root ... ok
- - 72 Testing GitClient.parse_revision_spec with target branch off a tracking branch not aligned with the remote ... ok
- - 73 Testing GitClient.parse_revision_spec with a target branch not up-to-date with a remote branch ... ok
- - 74 Testing GitClient.parse_revision_spec with a target branch posted off a tracking branch that merged another tracking branch ... ok
- - 75 Testing GitClient.parse_revision_spec with a target branch that merged a tracking branch off another tracking branch ... ok
- - 76 Testing GitClient.parse_revision_spec with a target branch that has branches from different remotes in its path ... ok
- - 77 Testing GitClient.parse_revision_spec with target branch off a tracking branch aligned with the remote ... ok
- - 78 Testing GitClient.parse_revision_spec with a target branch posted off a remote branch that is aligned to the same commit as another remote branch ... ok
- - 79 Testing GitClient.parse_revision_spec with a target branch posted off a remote branch without any tracking branches ... ok
- - 80 Testing GitClient.parse_revision_spec with target branch off a branch not properly tracking the remote ... ok
- - 81 Testing GitClient.parse_revision_spec with target branch off a tracking branch with changes since the remote ... ok
- - 82 Testing GitClient diff with a local tracking branch ... ok
- - 83 Testing GitClient simple diff case ... ok
- - 84 Testing GitClient simple diff with multiple commits case ... ok
- - 85 Testing GitClient diff with tracking branch that has slash in its name ... ok
- - 86 Testing GitClient diff with a tracking branch, but no origin remote ... ok
- - 87 Testing GitClient diff with option override for tracking branch ... ok
- - 88 Testing GitClient.get_raw_commit_message ... ok
- - 89 Testing GitClient get_repository_info, simple case ... ok
- - 90 Testing GitClient.merge with an invalid destination branch. ... ok
- - 91 Testing GitClient.merge with an invalid target branch. ... ok
- - 92 Testing GitClient.merge with squash set to True. ... ok
- - 93 Testing GitClient.merge with squash set to False. ... ok
- - 94 Testing GitClient.parse_revision_spec with no specified revisions ... ok
- - 95 Testing GitClient.parse_revision_spec with no specified revisions and a parent diff ... ok
- - 96 Testing GitClient.parse_revision_spec with one specified revision ... ok
- - 97 Testing GitClient.parse_revision_spec with one specified revision and a parent diff ... ok
- - 98 Testing GitClient.parse_revision_spec with diff-since-merge syntax ... ok
- - 99 Testing GitClient.parse_revision_spec with diff-since syntax ... ok
- - 100 Testing GitClient.parse_revision_spec with two specified revisions ... ok
- - 101 Testing GitClient.push_upstream with 'git push' disabled. ... ok
- - 102 Testing GitClient.push_upstream with an invalid remote branch. ... ok
- - 103 Testing GitClient scan_for_server using repo property ... ok
- - 104 Testing GitClient scan_for_server, .reviewboardrc case ... ok
- - 105 Testing GitClient scan_for_server, simple case ... ok
- - 106 Testing GitClient parse_revision_spec with too many revisions ... ok
- - 107 Testing MercurialClient diff with diverged branch ... ok
- - 108 Testing MercurialClient diff with file exclusion ... ok
- - 109 Testing MercurialClient diff with empty file exclusion ... ok
- - 110 Testing MercurialClient parent diffs with a diverged branch ... ok
- - 111 Testing MercurialClient parent diffs with a simple case ... ok
- - 112 Testing MercurialClient parent diffs with a diverged branch and --parent option ... ok
- - 113 Testing MercurialClient diff, simple case ... ok
- - 114 Testing MercurialClient diff with multiple commits ... ok
- - 115 Testing MercurialClient get_repository_info, simple case ... ok
- - 116 Testing MercurialClient guess summary & description 1 commit ... ok
- - 117 Testing MercurialClient guess summary & description middle commit ... ok
- - 118 Testing MercurialClient guess summary & description 3 commits ... ok
- - 119 Testing MercurialClient guess summary & description 2 commits ... ok
- - 120 Testing MercurialClient.parse_revision_spec with no arguments ... ok
- - 121 Testing MercurialClient.parse_revision_spec with one revision ... ok
- - 122 Testing MercurialClient.parse_revision_spec with r1::r2 syntax ... ok
- - 123 Testing MercurialClient.parse_revision_spec with r1..r2 syntax ... ok
- - 124 Testing MercurialClient.parse_revision_spec with parent base ... ok
- - 125 Testing MercurialClient.parse_revision_spec with two revisions ... ok
- - 126 Testing MercurialClient scan_for_server when in .reviewboardrc ... ok
- - 127 Testing MercurialClient scan_for_server, simple case ... ok
- - 128 Testing MercurialClient scan_for_server when present in hgrc ... ok
- - 129 Testing MercurialClient (+svn) _calculate_hgsubversion_repository_info properly determines repository and base paths ... ok
- - 130 Testing MercurialClient (+svn) diff specifying a revision ... ok
- - 131 Testing MercurialClient (+svn) diff, simple case ... ok
- - 132 Testing MercurialClient (+svn) diff with multiple commits ... ok
- - 133 Testing MercurialClient (+svn) get_repository_info, simple case ... ok
- - 134 Testing MercurialClient (+svn) scan_for_server in svn property ... ok
- - 135 Testing MercurialClient (+svn) scan_for_server in .reviewboardrc ... ok
- - 136 Testing MercurialClient (+svn) scan_for_server, simple case ... ok
- - 137 Testing P4Wrapper.counters ... ok
- - 138 Testing P4Wrapper.info ... ok
- - 139 Testing PerforceClient.normalize_exclude_patterns ... ok
- - 140 Testing PerforceClient.diff with a submitted changelist ... ok
- - 141 Testing PerforceClient.diff with moved files and capability off ... ok
- - 142 Testing PerforceClient.diff with moved files and capability on ... ok
- - 143 Testing PerforceClient.diff with a pending changelist ... ok
- - 144 Testing PerforceClient.parse_revision_spec with invalid specifications ... ok
- - 145 Testing PerforceClient.parse_revision_spec with no specified revisions ... ok
- - 146 Testing PerforceClient.parse_revision_spec with a pending changelist ... ok
- - 147 Testing PerforceClient.parse_revision_spec with a shelved changelist ... ok
- - 148 Testing PerforceClient.parse_revision_spec with a submitted changelist ... ok
- - 149 Testing PerforceClient.parse_revision_spec with two changelists ... ok
- - 150 Testing PerforceClient.get_repository_info ... ok
- - 151 Testing PerforceClient.get_repository_info outside client root ... ok
- - 152 Testing PerforceClient.scan_for_server_counter with reviewboard.url ... ok
- - 153 Testing PerforceClient.scan_for_server_counter with encoded reviewboard.url.http:|| ... ok
- - 154 Testing SVNClient diff with file exclude patterns ... ok
- - 155 Testing SVNClient diff with exclude patterns in a subdir ... ok
- - 156 Testing SVNClient diff with repo exclude patterns in a subdir ... ok
- - 157 Testing SVNClient diff with a non-utf8 file ... ok
- - 158 Testing SVNClient diff with a non-utf8 filename via repository_url option ... ok
- - 159 Testing SVNClient.get_commit_message with a single committed revision ... ok
- - 160 Testing SVNClient.get_commit_message with multiple committed revisions ... ok
- - 161 Testing SVNClient.get_commit_message with a working copy change ... ok
- - 162 Testing SVNClient.history_scheduled_with_commit nominal cases ... ok
- - 163 Testing SVNClient.history_scheduled_with_commit with exclude file ... ok
- - 164 Testing SVNClient.history_scheduled_with_commit is bypassed when diff is not for local modifications in a working copy ... ok
- - 165 Testing SVNClient.parse_revision_spec with invalid specifications ... ok
- - 166 Testing SVNClient.parse_revision_spec with no specified revisions ... ok
- - 167 Testing SVNClient.parse_revision_spec with a non-utf8 log entry ... ok
- - 168 Testing SVNClient.parse_revision_spec with R1:R2 syntax ... ok
- - 169 Testing SVNClient.parse_revision_spec with one specified numeric revision ... ok
- - 170 Testing SVNClient.parse_revision_spec with one specified changelist revision ... ok
- - 171 Testing SVNClient.parse_revision_spec with one specified invalid changelist revision ... ok
- - 172 Testing SVNClient.parse_revision_spec with one revision and a repository URL ... ok
- - 173 Testing SVNClient.parse_revision_spec with two revisions ... ok
- - 174 Testing SVNClient.parse_revision_spec with R1:R2 syntax and a repository URL ... ok
- - 175 Test diff with removal of lines that look like headers ... ok
- - 176 Testing SVNClient identical diff generated from root, subdirectory, and via target ... ok
- - 177 Testing SVNClient with --show-copies-as-adds functionality disabled ... ok
- - 178 Testing SVNClient with --show-copies-as-adds functionality enabled ... ok
- - 179 Testing SVNRepositoryInfo.find_server_repository_info with mirror_path matching ... ok
- - 180 Testing SVNRepositoryInfo.find_server_repository_info with path matching ... ok
- - 181 Testing SVNRepositoryInfo.find_server_repository_info with UUID matching ... ok
- - 182 Testing SVNRepositoryInfo._get_relative_path ... ok
- - 183 Testing argument duplication with rbt post --field myField=test --description test ... ok
- - 184 Testing multiple delimiters with rbt post --field myField=this=string=has=equals=signs ... ok
- - 185 Testing built-in fields through extra_fields with rbt post --field description=testing --field summary='native testing' --field testing-done='No tests' ... ok
- - 186 Testing setting target group via config file with rbt post ... ok
- - 187 Testing setting target person via config file with rbt post ... ok
- - 188 Testing multiple extra field arguments with rbt post --field foo=bar --field desc=new ... ok
- - 189 Testing setting target group on update via config file with rbt post --review-request-id=12345 ... ok
- - 190 Testing setting target person on update via config file with rbt post --review-request-id=12345 ... ok
- - 191 Testing one extra field argument with rbt post --field foo=bar ... ok
- - 192 Testing setting the target group with rbt post --target-groups=test_group ... ok
- - 193 Testing setting the target group on an update with rbt post --target-groups=test_group --review-request-id=12345 ... ok
- - 194 Testing setting the target person with rbt post --target-people=test_person ... ok
- - 195 Testing setting the target person on an update with rbt post --target-people=test_person --review-request-id=12345 ... ok
- - 196 Testing built-in fields through extra_fields with rbt post --field description and rbt post --field testing_done='No tests' ... ok
- - 197 Testing variable substitution with alphabetic variables ... ok
- - 198 Testing alias substitution with a slash at the end of the string ... ok
- - 199 Testing variable substitution where no variables are supplied ... ok
- - 200 Testing alias substitution with bad quotes. ... ok
- - 201 Testing variable substitution in rbtools aliases ... ok
- - 202 Testing variable substitution where the argument isn't supplied ... ok
- - 203 Testing variable substitution with the $* variable ... ok
- - 204 Testing $* variable substitution with whitespace-containing args ... ok
- - 205 Testing variable substitution where multiple variables appear ... ok
- - 206 Testing 'check_install' method. ... ok
- - 207 Testing 'execute' method. ... ok
- - 208 Testing 'is_valid_version' method. ... ok
- - 209 Testing 'make_empty_files' method. ... ok
- - 210 Testing 'make_tempfile' method. ... ok
- - - Ran 210 tests in 215.007s
OK
./tests/runtests.py 93.50s user 60.71s system 71% cpu 3:35.47 total
- Change Summary:
-
Sorted .gitignore file
- Commit:
-
94b1c1ce7355620cf101e17d9cb74dc03a7e5618820dc84dffb3c79db3d2a512aeb83dff6b7f0258
- Commit:
-
820dc84dffb3c79db3d2a512aeb83dff6b7f02588d80f2413049d0aa2e1557f168ce2819d33f459d
Checks run (2 succeeded)
- Commit:
-
8d80f2413049d0aa2e1557f168ce2819d33f459d0646f4d49694bc7b6979bbfcc5a64c9632b82a41