Merge lp:~verterok/ubuntuone-client/fix_file_shelf_tests_long_filename-stable-1-2 into lp:ubuntuone-client/stable-1-2

Proposed by Guillermo Gonzalez
Status: Merged
Approved by: dobey
Approved revision: 520
Merged at revision: 519
Proposed branch: lp:~verterok/ubuntuone-client/fix_file_shelf_tests_long_filename-stable-1-2
Merge into: lp:ubuntuone-client/stable-1-2
Diff against target: 26 lines (+3/-2)
2 files modified
tests/syncdaemon/test_dbus.py (+2/-1)
tests/syncdaemon/test_fileshelf.py (+1/-1)
To merge this branch: bzr merge lp:~verterok/ubuntuone-client/fix_file_shelf_tests_long_filename-stable-1-2
Reviewer Review Type Date Requested Status
Lucio Torre (community) Approve
Facundo Batista (community) Approve
Review via email: mp+30550@code.launchpad.net

This proposal supersedes a proposal from 2010-07-14.

Commit message

fix failing file_shelf and dbus tests.

Description of the change

Fix a file_shelf tests that creates a very long filename and fails if the branch is located in a not-so-deep directory structure, e.g: ~/projects/ubuntuone/ubuntuone-client/trunk

To post a comment you must log in.
Revision history for this message
Facundo Batista (facundo) wrote : Posted in a previous version of this proposal

Like it!

review: Approve
Revision history for this message
Lucio Torre (lucio.torre) wrote : Posted in a previous version of this proposal

still like it

review: Approve
Revision history for this message
dobey (dobey) wrote : Posted in a previous version of this proposal
Download full text (256.9 KiB)

The attempt to merge lp:~verterok/ubuntuone-client/fix_file_shelf_tests_long_filename-stable-1-2 into lp:ubuntuone-client/stable-1-2 failed.Below is the output from the failed tests.

/usr/bin/gnome-autogen.sh
checking for autoconf >= 2.53...
  testing autoconf2.50... not found.
  testing autoconf... found 2.65
checking for automake >= 1.10...
  testing automake-1.11... found 1.11.1
checking for libtool >= 1.5...
  testing libtoolize... found 2.2.6b
checking for intltool >= 0.30...
  testing intltoolize... found 0.41.1
checking for pkg-config >= 0.14.0...
  testing pkg-config... found 0.25
Checking for required M4 macros...
Checking for forbidden M4 macros...
Processing ./configure.ac
Running libtoolize...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
Running intltoolize...
Running aclocal-1.11...
Running autoconf...
Running autoheader...
Running automake-1.11...
Running ./configure --with-protocol=/var/cache/tarmac/ubuntuone-storage-protocol/stable-1-2 ...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries...

Revision history for this message
dobey (dobey) wrote : Posted in a previous version of this proposal
Download full text (254.0 KiB)

The attempt to merge lp:~verterok/ubuntuone-client/fix_file_shelf_tests_long_filename-stable-1-2 into lp:ubuntuone-client/stable-1-2 failed.Below is the output from the failed tests.

/usr/bin/gnome-autogen.sh
checking for autoconf >= 2.53...
  testing autoconf2.50... not found.
  testing autoconf... found 2.65
checking for automake >= 1.10...
  testing automake-1.11... found 1.11.1
checking for libtool >= 1.5...
  testing libtoolize... found 2.2.6b
checking for intltool >= 0.30...
  testing intltoolize... found 0.41.1
checking for pkg-config >= 0.14.0...
  testing pkg-config... found 0.25
Checking for required M4 macros...
Checking for forbidden M4 macros...
Processing ./configure.ac
Running libtoolize...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
Running intltoolize...
Running aclocal-1.11...
Running autoconf...
Running autoheader...
Running automake-1.11...
Running ./configure --with-protocol=/var/cache/tarmac/ubuntuone-storage-protocol/stable-1-2 ...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries...

Revision history for this message
Facundo Batista (facundo) wrote :

Ok (again)

review: Approve
Revision history for this message
Lucio Torre (lucio.torre) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/syncdaemon/test_dbus.py'
2--- tests/syncdaemon/test_dbus.py 2010-06-02 18:02:03 +0000
3+++ tests/syncdaemon/test_dbus.py 2010-07-21 15:44:46 +0000
4@@ -1944,7 +1944,8 @@
5 error_handler=self.error_handler)
6 def check(info):
7 """Check the FolderCreated info."""
8- self.assertTrue(os.path.exists(info['path']), info['path'])
9+ self.assertTrue(os.path.exists(info['path'].encode('utf-8')),
10+ info['path'].encode('utf-8'))
11 self.assertEquals(info['path'], os.path.normpath(path.encode('utf-8')))
12 mdobj = self.main.fs.get_by_path(path.encode('utf-8'))
13 udf = self.main.vm.get_volume(mdobj.share_id)
14
15=== modified file 'tests/syncdaemon/test_fileshelf.py'
16--- tests/syncdaemon/test_fileshelf.py 2010-03-26 20:15:51 +0000
17+++ tests/syncdaemon/test_fileshelf.py 2010-07-21 15:44:46 +0000
18@@ -205,7 +205,7 @@
19 self.shelf["foo"] = "bar"
20 path = self.shelf.key_file('foo')
21 open(self.shelf.key_file('foo'), 'w').close()
22- for _ in xrange(63):
23+ for _ in xrange(20):
24 open(path+'.old', 'w').close()
25 path=path+'.old'
26 self.assertRaises(KeyError, self.shelf.__getitem__, 'foo')

Subscribers

People subscribed via source and target branches