Merge lp:~mikemc/ubuntuone-storage-protocol/fix-run-tests into lp:ubuntuone-storage-protocol
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Mike McCracken on 2012-08-15 | ||||
| Approved revision: | 160 | ||||
| Merged at revision: | 152 | ||||
| Proposed branch: | lp:~mikemc/ubuntuone-storage-protocol/fix-run-tests | ||||
| Merge into: | lp:ubuntuone-storage-protocol | ||||
| Diff against target: |
139 lines (+99/-10) 3 files modified
run-tests (+8/-3) run-tests.bat (+82/-0) tests/test_context.py (+9/-7) |
||||
| To merge this branch: | bzr merge lp:~mikemc/ubuntuone-storage-protocol/fix-run-tests | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| dobey (community) | Approve on 2012-08-15 | ||
| Alejandro J. Cura (community) | 2012-08-07 | Approve on 2012-08-07 | |
| Eric Casteleijn (community) | Approve on 2012-08-07 | ||
|
Review via email:
|
|||
Commit Message
- Make tests run on darwin and windows. (LP: #1033823)
Description of the Change
- Make tests run on darwin and windows. (LP: #1033823)
With this change, the tests pass on darwin and windows.
We only use the python-native version of protobuf on the client platforms, so we skip the cpp version in the tests.
All tests still pass on linux with this change.
This also fixes a path assumption in get_certificates in test_context.py that failed if TRIAL_TEMP_DIR is set to e.g. /tmp or C:/temp-test.
| Eric Casteleijn (thisfred) wrote : | # |
+1
| Alejandro J. Cura (alecu) wrote : | # |
After the changes, it looks good, and all tests pass on the three platforms.
| dobey (dobey) wrote : | # |
10 +if [ "$SYSNAME" == "Darwin" ]; then
11 + u1trial="python $u1trial"
12 + u1lint="python $u1lint"
13 +else
14 + u1trial=u1trial
15 + u1lint=
16 +fi
17 +
I think we need to do 'export USE_PYFLAKES=1' outside the if/else here, as we really need to use pyflakes on all platforms here. It seems you also need a SET USE_PYFLAKES=1 in the run-tests.bat here.
I'm surprised that the u1lint passed on OSX or Windows in this branch. We are using pyflakes due to problems with the way pylint fails to handle some of the class structure of twisted.
- 157. By Mike McCracken on 2012-08-10
-
Remove env vars due to formerly broken buildout
| Mike McCracken (mikemc) wrote : | # |
Changed to use pyflakes on darwin, and remove references to env vars set to work around broken buildout, which is now fixed in https:/
- 158. By Mike McCracken on 2012-08-10
-
Add back SYSNAME so we skip cpp tests
| Mike McCracken (mikemc) wrote : | # |
with rev 158 , tests pass on darwin with no pyflakes complaints.
- 159. By Mike McCracken on 2012-08-15
-
use pyflakes on windows
- 160. By Mike McCracken on 2012-08-15
-
exclude generated protobuf code from pep8 check
| Mike McCracken (mikemc) wrote : | # |
with rev 159 windows uses pyflakes , and with 160 pep8 is happy.


Looks good