Browse code

use Autotest-3, not autotest-3

git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/branches/amax-follow-symlinks@431 830e0280-6d2a-0410-9c65-932aecc39d9d

Aaron Maxwell authored on 2010/07/26 02:22:27
Showing 1 changed files
... ...
@@ -210,7 +210,10 @@ if not run_tests:
210 210
 # helper functions for generating bucket names
211 211
 def bucket(tail):
212 212
         '''Test bucket name'''
213
-        return '%ss3cmd-autotest-%s' % (bucket_prefix, tail)
213
+        label = 'autotest'
214
+        if str(tail) == '3':
215
+                label = 'Autotest'
216
+        return '%ss3cmd-%s-%s' % (bucket_prefix, label, tail)
214 217
 def pbucket(tail):
215 218
         '''Like bucket(), but prepends "s3://" for you'''
216 219
         return 's3://' + bucket(tail)
... ...
@@ -242,7 +245,7 @@ test_s3cmd("Invalid bucket name", ["mb", "--bucket-location=EU", pbucket('EU')],
242 242
 
243 243
 ## ====== Buckets list
244 244
 test_s3cmd("Buckets list", ["ls"], 
245
-	must_find = [ "autotest-1", "autotest-2", "autotest-3" ], must_not_find_re = "autotest-EU")
245
+	must_find = [ "autotest-1", "autotest-2", "Autotest-3" ], must_not_find_re = "autotest-EU")
246 246
 
247 247
 
248 248
 ## ====== Sync to S3