Browse code

Fix Rename (NoSuchKey) test string tested for

The string being tested for changed in s3cmd. Update the test suite
to match the string being output by s3cmd.

Matt Domsch authored on 2015/08/17 13:11:45
Showing 1 changed files
... ...
@@ -464,7 +464,7 @@ test_s3cmd("Rename within S3", ['mv', '%s/xyz/etc/logo.png' % pbucket(1), '%s/xy
464 464
 ## ====== Rename (NoSuchKey)
465 465
 test_s3cmd("Rename (NoSuchKey)", ['mv', '%s/xyz/etc/logo.png' % pbucket(1), '%s/xyz/etc2/Logo.PNG' % pbucket(1)],
466 466
     retcode = EX_NOTFOUND,
467
-    must_find_re = [ 'ERROR:.*NoSuchKey' ],
467
+    must_find_re = [ 'Key not found' ],
468 468
     must_not_find = [ 'File %s/xyz/etc/logo.png moved to %s/xyz/etc2/Logo.PNG' % (pbucket(1), pbucket(1)) ])
469 469
 
470 470
 ## ====== Sync more from S3 (invalid src)