Browse code

testsuite: fix exitcode for putting symlinks w/o --follow-symlinks

The exitcode in this case is now EX_USAGE, not EX_OK.

Matt Domsch authored on 2014/05/12 23:01:22
Showing 1 changed files
... ...
@@ -501,7 +501,8 @@ test_s3cmd("Sync remote2remote", ['sync', '%s/xyz/' % pbucket(1), '%s/copy/' % p
501 501
 
502 502
 ## ====== Don't Put symbolic link
503 503
 test_s3cmd("Don't put symbolic links", ['put', 'testsuite/etc/linked1.png', 's3://%s/xyz/' % bucket(1),],
504
-    must_not_find_re = [ "linked1.png"])
504
+           retcode = EX_USAGE,
505
+           must_not_find_re = [ "linked1.png"])
505 506
 
506 507
 ## ====== Put symbolic link
507 508
 test_s3cmd("Put symbolic links", ['put', 'testsuite/etc/linked1.png', 's3://%s/xyz/' % bucket(1),'--follow-symlinks' ],