stable-1-2 tests failures if $PWD is too long and/or LANG=C

Bug #612735 reported by Guillermo Gonzalez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Fix Released
High
Guillermo Gonzalez
ubuntuone-client (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

These are the 3 tests failing:

===============================================================================
[ERROR]: tests.syncdaemon.test_fileshelf.CachedFileShelfTests.test_endless_borken_backups

Traceback (most recent call last):
  File "/home/guillermo/canonical/ubuntuone-client/u1sdtool_fix_list-folders_subscribed-stable-1-2/tests/syncdaemon/test_fileshelf.py", line 209, in test_endless_borken_backups
    open(path+'.old', 'w').close()
exceptions.IOError: [Errno 36] File name too long: '/home/guillermo/canonical/ubuntuone-client/u1sdtool_fix_list-folders_subscribed-stable-1-2/_trial_temp/tmp/tests.syncdaemon.test_fileshelf/CachedFileShelfTests/test_endless_borken_backups/shelf/f/o/o/foo.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old'
===============================================================================
[ERROR]: tests.syncdaemon.test_fileshelf.TestFileShelf.test_endless_borken_backups

Traceback (most recent call last):
  File "/home/guillermo/canonical/ubuntuone-client/u1sdtool_fix_list-folders_subscribed-stable-1-2/tests/syncdaemon/test_fileshelf.py", line 209, in test_endless_borken_backups
    open(path+'.old', 'w').close()
exceptions.IOError: [Errno 36] File name too long: '/home/guillermo/canonical/ubuntuone-client/u1sdtool_fix_list-folders_subscribed-stable-1-2/_trial_temp/tmp/tests.syncdaemon.test_fileshelf/TestFileShelf/test_endless_borken_backups/shelf/f/o/o/foo.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old.old'
===============================================================================
[ERROR]: tests.syncdaemon.test_dbus.FolderTests.test_create

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/internet/gtk2reactor.py", line 264, in _doReadOrWrite
    why = source.doRead()
  File "/home/guillermo/canonical/ubuntuone-client/u1sdtool_fix_list-folders_subscribed-stable-1-2/ubuntuone/syncdaemon/event_queue.py", line 656, in doRead
    notifier.process_events()
  File "/usr/lib/pymodules/python2.6/pyinotify.py", line 1136, in process_events
    self._default_proc_fun(revent)
  File "/usr/lib/pymodules/python2.6/pyinotify.py", line 811, in __call__
    return _ProcessEvent.__call__(self, event)
  File "/usr/lib/pymodules/python2.6/pyinotify.py", line 544, in __call__
    return meth(event)
  File "/home/guillermo/canonical/ubuntuone-client/u1sdtool_fix_list-folders_subscribed-stable-1-2/ubuntuone/syncdaemon/event_queue.py", line 288, in process_IN_DELETE
    self._unwatch_ancestors(deleted_udfs)
  File "/home/guillermo/canonical/ubuntuone-client/u1sdtool_fix_list-folders_subscribed-stable-1-2/ubuntuone/syncdaemon/event_queue.py", line 308, in _unwatch_ancestors
    self.eq.inotify_rm_watch(ancestor)
  File "/home/guillermo/canonical/ubuntuone-client/u1sdtool_fix_list-folders_subscribed-stable-1-2/ubuntuone/syncdaemon/event_queue.py", line 678, in inotify_rm_watch
    raise ValueError("The path %r is not watched right now!" % dirpath)
exceptions.ValueError: The path '/home/guillermo/canonical' is not watched right now!

Related branches

Changed in ubuntuone-client:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Guillermo Gonzalez (verterok)
Changed in ubuntuone-client:
status: In Progress → Fix Committed
Changed in ubuntuone-client:
status: Fix Committed → Fix Released
Changed in ubuntuone-client (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.