Merge lp:~diegosarmentero/ubuntuone-client/fix-links into lp:ubuntuone-client
| Status: | Merged |
|---|---|
| Approved by: | Diego Sarmentero on 2012-01-12 |
| Approved revision: | 1185 |
| Merged at revision: | 1179 |
| Proposed branch: | lp:~diegosarmentero/ubuntuone-client/fix-links |
| Merge into: | lp:ubuntuone-client |
| Diff against target: |
467 lines (+140/-20) 14 files modified
tests/platform/test_external_interface.py (+8/-0) tests/platform/test_os_helper.py (+27/-0) tests/platform/test_tools.py (+6/-0) tests/platform/test_u1sdtool.py (+15/-5) tests/syncdaemon/test_interaction_interfaces.py (+5/-0) tests/syncdaemon/test_main.py (+6/-0) tests/syncdaemon/test_vm_helper.py (+17/-0) ubuntuone/platform/linux/dbus_interface.py (+6/-0) ubuntuone/platform/tools/__init__.py (+5/-0) ubuntuone/platform/windows/ipc.py (+5/-1) ubuntuone/platform/windows/ipc_client.py (+4/-0) ubuntuone/platform/windows/os_helper.py (+26/-13) ubuntuone/syncdaemon/interaction_interfaces.py (+5/-0) ubuntuone/syncdaemon/main.py (+5/-1) |
| To merge this branch: | bzr merge lp:~diegosarmentero/ubuntuone-client/fix-links |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Manuel de la Peña (community) | Approve on 2012-01-12 | ||
| Natalia Bidart | 2011-12-21 | Approve on 2012-01-12 | |
|
Review via email:
|
|||
Description of the Change
Fix: Create get_home_dir() method to get a proper home dir in unicode environments (LP: #898640).
fIX: Handle link creation with unicode paths (LP: #891173).
To install the new dependency, download this file:
FOR WINDOWS:
http://
and execute the file.
FOR LINUX:
http://
Uncompress the file, go inside the folder, and execute in a console: "python setup.py install"
- 1168. By Diego Sarmentero on 2012-01-02
-
merge
- 1169. By Diego Sarmentero on 2012-01-02
-
merge
- 1170. By Diego Sarmentero on 2012-01-02
-
Revert run-test.bat, fix tests
- 1171. By Diego Sarmentero on 2012-01-03
-
Reverting run-tests.bat
- 1172. By Diego Sarmentero on 2012-01-03
-
Reverting run-tests.bat
- 1173. By Diego Sarmentero on 2012-01-03
-
Fixed some docstrings
- 1174. By Diego Sarmentero on 2012-01-03
-
changing files permissions
| Manuel de la Peña (mandel) wrote : | # |
One question, can the xdg from sso be replaced by dirspec.basedir?
- 1175. By Diego Sarmentero on 2012-01-04
-
Adding tests for make_link, read_link, path_exists
- 1176. By Diego Sarmentero on 2012-01-05
-
Changing path exist implementation
| Manuel de la Peña (mandel) wrote : | # |
A couple of comments:
* Merge test_links_
* Instead of:
exists = os.path.
return exists
just do return os.path.
- 1177. By Diego Sarmentero on 2012-01-09
-
Improving some tests.
- 1178. By Diego Sarmentero on 2012-01-09
-
Removing unnecesary except
| Natalia Bidart (nataliabidart) wrote : | # |
The changes to run-tests.bat should be reverted since the directory with tests should be at the end of the test command line.
Also, when running the suite on an account with unicode-
=======
[FAIL]
Traceback (most recent call last):
File "C:\Python27\
result = g.send(result)
File "E:\client\
self.
twisted.
a = 'C:\\Users\
b = u'C:\\Users\
tests.platform.
=======
[ERROR]
Traceback (most recent call last):
File "E:\client\
self.
File "E:\client\
target = read_link(
File "E:\client\
result = function(*args, **kwargs)
File "E:\client\
return function(*args, **kwargs)
File "E:\client\
result = get_syncdaemon_
exceptions.
tests.platform.
=======
[ERROR]
Traceback (most recent call last):
File "E:\client\
self.
File "E:\client\
target = read_link(
File "E:\client\
result = function(*args, **kwargs)
File "E:\client\
return function(*args, **kwargs)
File "E:\client\
result = get_syncdaemon_
exceptions.
tests.platform.
=======
[ERROR]
Traceback (most recent call last):
File "E:\client\
- 1179. By Diego Sarmentero on 2012-01-09
-
Reverted run-tests.bat
- 1180. By Diego Sarmentero on 2012-01-10
-
Fixed tests.xy
- 1181. By Diego Sarmentero on 2012-01-10
-
fixing pep8 issues.
- 1182. By Diego Sarmentero on 2012-01-10
-
merge
| Natalia Bidart (nataliabidart) wrote : | # |
Test are still failing for me in windows, with unicode issues. See:
=======
[FAIL]
Traceback (most recent call last):
File "C:\Python27\
result = g.send(result)
File "E:\client\
self.
twisted.
a = 'C:\\Users\
b = u'C:\\Users\
tests.platform.
=======
[ERROR]
Traceback (most recent call last):
File "E:\client\
self.
exceptions.
tests.syncdaemo
-------
Ran 2545 tests in 271.941s
FAILED (skips=93, failures=1, errors=1, successes=2450)
- 1183. By Diego Sarmentero on 2012-01-11
-
Tests Fixed.
- 1184. By Diego Sarmentero on 2012-01-12
-
revert run-tests.bat
| Manuel de la Peña (mandel) wrote : | # |
From irc:
mandel> gatox, in _assert_read_link you could have done destination = os.path.
<mandel> gatox, also test_create_
- 1185. By Diego Sarmentero on 2012-01-12
-
Tests improved.


* The test_show_ folders_ subscribed was buggy before this branch. The proper fix, besides adding the get_udf_path call, is to also have suggested_path be a "server" path, which always use the / slash.
So, the fix should include something like this:
path = get_udf_
and the rest as how this branch propose it.
* The tests test_create_ shares_ link_exists_ with_lnk and test_create_ shares_ link_existing_ with_lnk are very similar in name and in code. Though I can see the difference, I'm not sure we need both, and we certainly need better names for each one to have future readers understanding the goal of each test. Can you please improve the naming a bit, and expand in the docstring what each test is checking?
* There is no need to have 2 if's f or this:
if not exists: u'.lnk' ):
if not path.endswith(
it can be improved to:
if not exists and not path.endswith( u'.lnk' ):
* As per the comment on make_link in the except AttributeError block, shall we remove that now that we handle unicode paths?
* Can you please add tests to os_helper to reflect the changes you have made to path_exists, make_link and read_link?
Thanks!