Changeset f0fd34d in trunk


Ignore:
Timestamp:
2015-07-29T00:39:26Z (10 years ago)
Author:
Brian Warner <warner@…>
Branches:
master
Children:
98ab848
Parents:
28399b6
git-author:
Zooko <zookog@…> (2015-06-16 17:22:59)
git-committer:
Brian Warner <warner@…> (2015-07-29 00:39:26)
Message:

unit test for my desired behavior

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/test/test_cli_cp.py

    r28399b6 rf0fd34d  
    789789
    790790# name collisions: ensure files are copied in order
    791 cp -r $PARENTCAP/dir6/dir $PARENTCAP/dir5/dir to : to/dir/collide=5
    792 cp -r $PARENTCAP/dir5/dir $PARENTCAP/dir6/dir to : to/dir/collide=6
    793 cp -r $DIRCAP6 $DIRCAP5 to : to/dir/collide=5
    794 cp -r $DIRCAP5 $DIRCAP6 to : to/dir/collide=6
     791cp -r $PARENTCAP/dir6/dir $PARENTCAP/dir5/dir to : E9-COLLIDING-TARGETS
     792cp -r $PARENTCAP/dir5/dir $PARENTCAP/dir6/dir to : E9-COLLIDING-TARGETS
     793cp -r $DIRCAP6 $DIRCAP5 to : E9-COLLIDING-TARGETS
     794cp -r $DIRCAP5 $DIRCAP6 to : E9-COLLIDING-TARGETS
    795795
    796796"""
     
    950950                if err == "target is not a directory, but ends with a slash":
    951951                    return set(["E7-BADSLASH"])
     952                if err == "cannot copy multiple files with the same name from different source directories into the same target directory":
     953                    return set(["E9-COLLIDING-TARGETS"])
    952954                if (err.startswith("source ") and
    953955                    "is not a directory, but ends with a slash" in err):
Note: See TracChangeset for help on using the changeset viewer.