]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/log
tahoe-lafs/tahoe-lafs.git
9 years agoCreate another uploader db test
David Stainton [Wed, 22 Apr 2015 07:38:24 +0000 (08:38 +0100)]
Create another uploader db test

9 years agoRemove unneeded lines the crept in from previous WIP commits
David Stainton [Wed, 22 Apr 2015 02:16:52 +0000 (03:16 +0100)]
Remove unneeded lines the crept in from previous WIP commits

9 years agoCosmetics.
Daira Hopwood [Tue, 21 Apr 2015 22:54:51 +0000 (23:54 +0100)]
Cosmetics.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoAvoid shadowing a method name.
Daira Hopwood [Tue, 21 Apr 2015 22:54:25 +0000 (23:54 +0100)]
Avoid shadowing a method name.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoBetter variable name.
Daira Hopwood [Tue, 21 Apr 2015 22:54:01 +0000 (23:54 +0100)]
Better variable name.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoChange when _scan is called.
Daira Hopwood [Tue, 21 Apr 2015 22:53:39 +0000 (23:53 +0100)]
Change when _scan is called.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoFor persistence test, use a new client (with the same backupdb).
Daira Hopwood [Tue, 21 Apr 2015 22:52:26 +0000 (23:52 +0100)]
For persistence test, use a new client (with the same backupdb).

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoSimplification of _upload_lazy_tail.
Daira Hopwood [Tue, 21 Apr 2015 22:10:35 +0000 (23:10 +0100)]
Simplification of _upload_lazy_tail.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoWIP
David Stainton [Tue, 21 Apr 2015 21:51:51 +0000 (22:51 +0100)]
WIP

9 years agowip - confirming that the db persistence doesn't work
David Stainton [Tue, 21 Apr 2015 17:48:14 +0000 (18:48 +0100)]
wip - confirming that the db persistence doesn't work

9 years agoFix db persistence unit test for uploader
David Stainton [Tue, 21 Apr 2015 07:17:24 +0000 (08:17 +0100)]
Fix db persistence unit test for uploader

9 years agoFix race condition in upload deque
David Stainton [Tue, 21 Apr 2015 04:48:16 +0000 (05:48 +0100)]
Fix race condition in upload deque

9 years agoRemove redundant calls to _scan and startService.
Daira Hopwood [Mon, 20 Apr 2015 23:02:33 +0000 (00:02 +0100)]
Remove redundant calls to _scan and startService.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoWIP
David Stainton [Mon, 20 Apr 2015 22:34:33 +0000 (23:34 +0100)]
WIP

9 years agoFixed move tree test and cleaned up persistence test
David Stainton [Mon, 20 Apr 2015 20:15:14 +0000 (21:15 +0100)]
Fixed move tree test and cleaned up persistence test

- the persistence test does not yet work

9 years agoUse Unicode directory name.
Daira Hopwood [Mon, 20 Apr 2015 16:57:37 +0000 (17:57 +0100)]
Use Unicode directory name.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoAdd temporary debug prints.
Daira Hopwood [Mon, 20 Apr 2015 16:57:26 +0000 (17:57 +0100)]
Add temporary debug prints.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoWhitespace.
Daira Hopwood [Mon, 20 Apr 2015 16:56:50 +0000 (17:56 +0100)]
Whitespace.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoTry to fix potential race conditions in testMoveEmptyTree.
Daira Hopwood [Mon, 20 Apr 2015 16:56:34 +0000 (17:56 +0100)]
Try to fix potential race conditions in testMoveEmptyTree.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoAdd ignore mechanism to upload callback.
Daira Hopwood [Mon, 20 Apr 2015 16:54:17 +0000 (17:54 +0100)]
Add ignore mechanism to upload callback.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoClarify dir/file/link logic.
Daira Hopwood [Mon, 20 Apr 2015 16:52:48 +0000 (17:52 +0100)]
Clarify dir/file/link logic.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoAdd recursive=True to drop_upload watch.
Daira Hopwood [Mon, 20 Apr 2015 16:17:52 +0000 (17:17 +0100)]
Add recursive=True to drop_upload watch.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoWIP
David Stainton [Sat, 18 Apr 2015 17:04:46 +0000 (18:04 +0100)]
WIP
- change the upload deque to handle file path strings instead of
FilePath objects

9 years agofix unit tests WIP
David Stainton [Sat, 18 Apr 2015 07:24:34 +0000 (08:24 +0100)]
fix unit tests WIP

9 years agoAdd stats counter checking to uploader service start test
David Stainton [Sat, 18 Apr 2015 03:50:54 +0000 (04:50 +0100)]
Add stats counter checking to uploader service start test

9 years agoAdd further refinements to move tree uploader test
David Stainton [Sat, 18 Apr 2015 03:25:49 +0000 (04:25 +0100)]
Add further refinements to move tree uploader test
- test empty tree and small tree test cases using various stats counters

9 years agoUncomment mkdir in uploader unit test
David Stainton [Sat, 18 Apr 2015 03:06:33 +0000 (04:06 +0100)]
Uncomment mkdir in uploader unit test

9 years agoAdd move empty dir tree test and minor test cleanup
David Stainton [Sat, 18 Apr 2015 03:04:09 +0000 (04:04 +0100)]
Add move empty dir tree test and minor test cleanup

9 years agoRemove code duplication from uploader unit tests
David Stainton [Sat, 18 Apr 2015 02:20:03 +0000 (03:20 +0100)]
Remove code duplication from uploader unit tests

9 years agoDon't increment disappeared stats twice
David Stainton [Sat, 18 Apr 2015 01:43:22 +0000 (02:43 +0100)]
Don't increment disappeared stats twice

9 years agoMerge branch '2406.otf-objective-2.3.1-subdirs' into 2406.otf-objective-2.3.1-fix...
David Stainton [Sat, 18 Apr 2015 01:03:08 +0000 (02:03 +0100)]
Merge branch '2406.otf-objective-2.3.1-subdirs' into 2406.otf-objective-2.3.1-fix-upload-deque

9 years agoTeach uploader to monitor subdirectories
David Stainton [Sat, 18 Apr 2015 00:47:09 +0000 (01:47 +0100)]
Teach uploader to monitor subdirectories

9 years agoTeach uploader to keep object stats not file stats 158/head 160/head
David Stainton [Fri, 17 Apr 2015 22:30:27 +0000 (23:30 +0100)]
Teach uploader to keep object stats not file stats

- we keep track of objects instead of files so that we are not
forced to determine the object type (file, directory, symlink, special file etc.)

9 years agoFix test_create_drop_uploader 157/head
David Stainton [Fri, 17 Apr 2015 20:47:13 +0000 (21:47 +0100)]
Fix test_create_drop_uploader

This test must use the correct function signature for it's mock function...
obviously. =-p

9 years agoRemove filepath from pending set earlier
David Stainton [Fri, 17 Apr 2015 21:25:30 +0000 (22:25 +0100)]
Remove filepath from pending set earlier

9 years agoFix test_create_drop_uploader
David Stainton [Fri, 17 Apr 2015 20:47:13 +0000 (21:47 +0100)]
Fix test_create_drop_uploader

This test must use the correct function signature for it's mock function...
obviously. =-p

9 years agoTeach upload deque to be sequential and asynchronous
David Stainton [Fri, 17 Apr 2015 19:59:37 +0000 (20:59 +0100)]
Teach upload deque to be sequential and asynchronous

9 years agoTeach uploade deque append to not block (potentially?)
David Stainton [Fri, 17 Apr 2015 18:58:08 +0000 (19:58 +0100)]
Teach uploade deque append to not block (potentially?)

9 years agoSimply upload queue API
David Stainton [Fri, 17 Apr 2015 18:38:30 +0000 (19:38 +0100)]
Simply upload queue API

9 years agoMerge branch 'dropupload-scan-on-startup-1458-1' into 2406.otf-objective-2.3.1
David Stainton [Fri, 17 Apr 2015 18:20:03 +0000 (19:20 +0100)]
Merge branch 'dropupload-scan-on-startup-1458-1' into 2406.otf-objective-2.3.1

Conflicts:
src/allmydata/frontends/drop_upload.py
src/allmydata/test/test_drop_upload.py

9 years agoMake the unit tests work for Mock and Real 2406.otf-objective-2.3
Daira Hopwood [Fri, 17 Apr 2015 17:30:52 +0000 (18:30 +0100)]
Make the unit tests work for Mock and Real

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoAdd very basic unit tests for dir scan and db
Daira Hopwood [Fri, 17 Apr 2015 17:28:56 +0000 (18:28 +0100)]
Add very basic unit tests for dir scan and db

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoScan dir when service starts
Daira Hopwood [Fri, 17 Apr 2015 17:26:14 +0000 (18:26 +0100)]
Scan dir when service starts

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoWIP - add some backup db code fragments
Daira Hopwood [Fri, 17 Apr 2015 17:24:41 +0000 (18:24 +0100)]
WIP - add some backup db code fragments

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoBug fix: don't append filepath to upload deque twice 2406.otf-objective-2.2
David Stainton [Wed, 15 Apr 2015 18:19:56 +0000 (18:19 +0000)]
Bug fix: don't append filepath to upload deque twice

9 years agoBug fix: deque must be unbounded
David Stainton [Wed, 15 Apr 2015 18:13:41 +0000 (18:13 +0000)]
Bug fix: deque must be unbounded

If using a bounded deque then:
"""
Once a bounded length deque is full, when new items are added, a corresponding number of items are discarded from the opposite end.
"""

This bug was introduced at commit 87657eb382da05039cce99862691efcc27243193

9 years agoFix pending upload bug
David Stainton [Wed, 15 Apr 2015 18:10:01 +0000 (18:10 +0000)]
Fix pending upload bug

- remove filepath from pending upload set BEFORE performing upload
This bug was introduced at commit 87657eb382da05039cce99862691efcc27243193

9 years agoDisable a test that breaks on Windows.
Daira Hopwood [Wed, 15 Apr 2015 12:33:58 +0000 (13:33 +0100)]
Disable a test that breaks on Windows.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoWIP: workaround for duplicate events on Windows. refs #2220
Daira Hopwood [Wed, 18 Mar 2015 00:47:40 +0000 (00:47 +0000)]
WIP: workaround for duplicate events on Windows. refs #2220

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoWindows support for drop-upload. fixes #1431
Daira Hopwood [Fri, 17 Apr 2015 17:09:26 +0000 (18:09 +0100)]
Windows support for drop-upload. fixes #1431

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoDocs for drop-upload on Windows.
Daira Hopwood [Sat, 12 Apr 2014 18:47:57 +0000 (19:47 +0100)]
Docs for drop-upload on Windows.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoDropUploader.startService returns a deferred; don't drop it.
Daira Hopwood [Wed, 15 Apr 2015 13:03:03 +0000 (14:03 +0100)]
DropUploader.startService returns a deferred; don't drop it.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoUse explicit deque to create expected upload "queue" functionality.
Daira Hopwood [Tue, 14 Apr 2015 17:13:20 +0000 (18:13 +0100)]
Use explicit deque to create expected upload "queue" functionality.
Deduplicate upload events via pending set.
refs #1440, #1449

Author: David Stainton <dstainton415@gmail.com>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoTeach StorageFarmBroker to fire a deferred when a connection threshold is reached...
Daira Hopwood [Tue, 14 Apr 2015 17:10:51 +0000 (18:10 +0100)]
Teach StorageFarmBroker to fire a deferred when a connection threshold is reached. refs #1449

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agobackupdb.py: cosmetics
Daira Hopwood [Fri, 17 Apr 2015 16:59:58 +0000 (17:59 +0100)]
backupdb.py: cosmetics

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoMake backupdb use dbutil. (This also causes it to use "PRAGMA synchronous = OFF".)
Daira Hopwood [Fri, 17 Apr 2015 16:59:34 +0000 (17:59 +0100)]
Make backupdb use dbutil. (This also causes it to use "PRAGMA synchronous = OFF".)

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoAdd util/dbutil.py: open/create/update sqlite databases given some schema.
Daira Hopwood [Fri, 17 Apr 2015 16:57:49 +0000 (17:57 +0100)]
Add util/dbutil.py: open/create/update sqlite databases given some schema.

Author: Brian Warner <warner@lothar.com>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoSome useful Deferred utilities, originally from the cloud backend branch.
David-Sarah Hopwood [Fri, 23 Nov 2012 00:23:54 +0000 (00:23 +0000)]
Some useful Deferred utilities, originally from the cloud backend branch.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoMake the unit tests work for Mock and Real
David Stainton [Fri, 17 Apr 2015 00:52:48 +0000 (01:52 +0100)]
Make the unit tests work for Mock and Real

9 years agoAdd very basic unit tests for dir scan and db
David Stainton [Tue, 14 Apr 2015 04:33:26 +0000 (04:33 +0000)]
Add very basic unit tests for dir scan and db

9 years agoScan dir when service starts
David Stainton [Tue, 14 Apr 2015 02:18:59 +0000 (02:18 +0000)]
Scan dir when service starts

the add file to queue function currently does nothing...

9 years agoMerge pull request #152 from vu3rdd/182-osx-packaging-7 by
Daira Hopwood [Mon, 13 Apr 2015 23:08:47 +0000 (00:08 +0100)]
Merge pull request #152 from vu3rdd/182-osx-packaging-7

strip the single quotes around $VERSION

9 years agostrip the single quotes around $VERSION 152/head
Ramakrishnan Muthukrishnan [Sat, 11 Apr 2015 09:05:18 +0000 (14:35 +0530)]
strip the single quotes around $VERSION

Without stripping the single quotes, the generated pagkage filename
also has the undesired single quotes around the version string.
(eg: tahoe-lafs-'1.10.0.post309'-osx.pkg).

9 years agoWIP - add some backup db code fragments
David Stainton [Sat, 11 Apr 2015 03:19:47 +0000 (03:19 +0000)]
WIP - add some backup db code fragments

9 years agoREADME.rst: change description to the new wording on tahoe-lafs.org (with "file store...
Daira Hopwood [Fri, 10 Apr 2015 22:42:57 +0000 (23:42 +0100)]
README.rst: change description to the new wording on tahoe-lafs.org (with "file store" instead of "filesystem").

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoAdd discussion and rejection of Change Journals.
Daira Hopwood [Thu, 2 Apr 2015 15:16:46 +0000 (16:16 +0100)]
Add discussion and rejection of Change Journals.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoAdd link to otf-magic-folder-objective ticket query.
Daira Hopwood [Thu, 2 Apr 2015 15:16:17 +0000 (16:16 +0100)]
Add link to otf-magic-folder-objective ticket query.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoCopyediting.
Daira Hopwood [Thu, 2 Apr 2015 15:15:39 +0000 (16:15 +0100)]
Copyediting.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoCollaborative design from Daira and David.
Daira Hopwood [Thu, 2 Apr 2015 14:26:25 +0000 (15:26 +0100)]
Collaborative design from Daira and David.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoMerge branch 'ftp-2394'
Brian Warner [Tue, 31 Mar 2015 18:07:48 +0000 (11:07 -0700)]
Merge branch 'ftp-2394'

closes ticket:2394

9 years agotypo
Brian Warner [Tue, 31 Mar 2015 18:07:21 +0000 (11:07 -0700)]
typo

9 years agobump Twisted dep to 11.1.0, thus simplify IntishPermissions
Brian Warner [Tue, 31 Mar 2015 16:41:55 +0000 (09:41 -0700)]
bump Twisted dep to 11.1.0, thus simplify IntishPermissions

9 years agotest_ftp: fix comparison against integer
Brian Warner [Tue, 31 Mar 2015 16:30:17 +0000 (09:30 -0700)]
test_ftp: fix comparison against integer

9 years agoFix ftp 'ls' to work with current Twisted-15.0.0
Brian Warner [Thu, 26 Mar 2015 01:23:33 +0000 (18:23 -0700)]
Fix ftp 'ls' to work with current Twisted-15.0.0

refs ticket:2394

It's kind of a hack, but Twisted changed the API and I couldn't find a
cleaner way to detect which form of "permissions" value the Twisted FTP
server wants.

I've manually tested it against 14.0.2 and 15.0.0.

9 years agoMerge pull request #149 from warner/mutable-2034
Daira Hopwood [Tue, 31 Mar 2015 16:47:06 +0000 (17:47 +0100)]
Merge pull request #149 from warner/mutable-2034

use more servers for test_mutable.Update, to test #2034 properly

9 years agouse more servers for test_mutable.Update, to test #2034 properly 149/head
Brian Warner [Thu, 26 Mar 2015 01:49:37 +0000 (18:49 -0700)]
use more servers for test_mutable.Update, to test #2034 properly

9 years agoAdd a test, add missing imports. refs #2388
Daira Hopwood [Tue, 24 Mar 2015 17:10:00 +0000 (17:10 +0000)]
Add a test, add missing imports. refs #2388

This tests ftpd, but not sftpd. Doing this sort of test on sftpd
requires the creation of a valid pubkey/privkey file pair, which is more
work than I want to do right now.

init_ftp/init_sftp were changed to interpret the configured
accounts.file as relative to the node's basedir, with
abspath_expanduser_unicode(accountfile, base=self.basedir).
This would happen naturally in a real node, since it os.chdir()s
to the basedir before doing anything. But tests don't do that.

Author: Brian Warner <warner@lothar.com>
Author: Daira Hopwood <daira@jacaranda.org>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoEnsure that path parameters to SFTPServer and FTPServer constructors are unicode...
Daira Hopwood [Tue, 3 Mar 2015 20:06:35 +0000 (20:06 +0000)]
Ensure that path parameters to SFTPServer and FTPServer constructors are unicode. refs #2388

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoAdd from_utf8_or_none and tests.
Daira Hopwood [Tue, 3 Mar 2015 20:04:57 +0000 (20:04 +0000)]
Add from_utf8_or_none and tests.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoFix a missing import in test-osx-pkg.py. refs #2393
Daira Hopwood [Tue, 24 Mar 2015 16:44:54 +0000 (16:44 +0000)]
Fix a missing import in test-osx-pkg.py. refs #2393

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoMore careful quoting in build-osx-pkg.sh. refs #2393
Daira Hopwood [Tue, 24 Mar 2015 16:42:27 +0000 (16:42 +0000)]
More careful quoting in build-osx-pkg.sh. refs #2393

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoMove computation of Tahoe version from Makefile to build-osx-pkg.sh. refs #2393
Daira Hopwood [Tue, 24 Mar 2015 16:41:43 +0000 (16:41 +0000)]
Move computation of Tahoe version from Makefile to build-osx-pkg.sh. refs #2393

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoMerge pull request #146 from warner/versioned-osx-pkg
Daira Hopwood [Tue, 24 Mar 2015 16:11:30 +0000 (16:11 +0000)]
Merge pull request #146 from warner/versioned-osx-pkg

put a version string in the name of the OS-X .pkg file

9 years agocreate/test/upload tahoe-lafs-VERSION-osx.pkg, not tahoe-lafs-osx.pkg 146/head
Brian Warner [Sat, 21 Mar 2015 21:20:00 +0000 (14:20 -0700)]
create/test/upload tahoe-lafs-VERSION-osx.pkg, not tahoe-lafs-osx.pkg

Closes ticket:2393

9 years agomove build-osx-pkg out to a separate shell script
Brian Warner [Sat, 21 Mar 2015 21:09:33 +0000 (14:09 -0700)]
move build-osx-pkg out to a separate shell script

Also remove the duplicate test-osx-pkg (i.e. don't run the test as part
of the build, and have the caller do it themselves later).

9 years agoMakefile: add upload-osx-pkg rule
Brian Warner [Fri, 20 Mar 2015 17:52:48 +0000 (10:52 -0700)]
Makefile: add upload-osx-pkg rule

9 years agocheck_memory.py: announce 32-bit vs 64-bit
Brian Warner [Fri, 20 Mar 2015 01:59:16 +0000 (18:59 -0700)]
check_memory.py: announce 32-bit vs 64-bit

9 years agoMerge branch '2329-2': fix "tahoe cp -r" exception
Brian Warner [Tue, 17 Mar 2015 18:53:30 +0000 (11:53 -0700)]
Merge branch '2329-2': fix "tahoe cp -r" exception

9 years agotest_cli_cp.py: hush pyflakes 144/head
Brian Warner [Tue, 17 Mar 2015 18:16:06 +0000 (11:16 -0700)]
test_cli_cp.py: hush pyflakes

9 years agotahoe_cp: be consistent with "source.basename() is None" testing
Brian Warner [Tue, 17 Mar 2015 18:13:57 +0000 (11:13 -0700)]
tahoe_cp: be consistent with "source.basename() is None" testing

9 years agotahoe_cp: minor cleanups, no behavior changes
Brian Warner [Tue, 17 Mar 2015 18:13:33 +0000 (11:13 -0700)]
tahoe_cp: minor cleanups, no behavior changes

9 years agotahoe_cp: make populate(recurse=) more explicit
Brian Warner [Tue, 17 Mar 2015 18:11:11 +0000 (11:11 -0700)]
tahoe_cp: make populate(recurse=) more explicit

9 years agotest_cli_cp: test cleanups
Brian Warner [Tue, 17 Mar 2015 17:41:01 +0000 (10:41 -0700)]
test_cli_cp: test cleanups

* remove redundant test cases
* add more internal asserts
* clean up set usage

9 years agotest_cli_cp: improve test cases
Brian Warner [Tue, 17 Mar 2015 16:59:34 +0000 (09:59 -0700)]
test_cli_cp: improve test cases

9 years agoimprove error message for slash-terminated non-directories
Brian Warner [Tue, 10 Mar 2015 16:17:17 +0000 (09:17 -0700)]
improve error message for slash-terminated non-directories

9 years agotest_cli_cp.py: turn off debug mode, tests now assert for real
Brian Warner [Wed, 4 Mar 2015 02:20:03 +0000 (18:20 -0800)]
test_cli_cp.py: turn off debug mode, tests now assert for real

9 years agotahoe cp: overhaul target assignment, update tests
Brian Warner [Wed, 4 Mar 2015 02:19:58 +0000 (18:19 -0800)]
tahoe cp: overhaul target assignment, update tests

This substantially changes the internals of "tahoe cp", to behave in
accordance with the scheme developed in ticket:2329. test_cli_cp.py got
a large new test to exercise all the various combinations. This also
changes the set of error messages that "tahoe cp" can produce.

This modifies try_copy(), inserts a new implementation of
copy_things_to_directory() (and supporting methods), and fixes a few
bugs elsewhere.

fixes ticket:2329

9 years agotahoe_cp: delete copy_to_directory() code
Brian Warner [Wed, 4 Mar 2015 02:18:17 +0000 (18:18 -0800)]
tahoe_cp: delete copy_to_directory() code

This code will be replaced in the next commit with an entirely different
approach, and modifying it in a single commit would yield a completely
unreadable diff.

9 years agotahoe_cp: simplify some checks, rename some functions
Brian Warner [Wed, 4 Mar 2015 01:51:28 +0000 (17:51 -0800)]
tahoe_cp: simplify some checks, rename some functions

no behavioral changes

9 years ago.travis.yml: emove 'sudo: false' as requested by https://github.com/travis-ci/travis...
Daira Hopwood [Fri, 27 Feb 2015 23:59:18 +0000 (23:59 +0000)]
.travis.yml: emove 'sudo: false' as requested by https://github.com/travis-ci/travis-ci/issues/2389#issuecomment-76202191

Signed-off-by: Daira Hopwood <daira@jacaranda.org>