Browse code

* run-tests.py: Improved testsuite, added parameters support to run only specified tests, cleaned up win/posix integration.

git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/trunk@300 830e0280-6d2a-0410-9c65-932aecc39d9d

Michal Ludvig authored on 2008/12/29 14:18:15
Showing 2 changed files
... ...
@@ -1,9 +1,9 @@
1 1
 2008-12-29  Michal Ludvig  <michal@logix.cz>
2 2
 
3
-	* S3/Exception.py: Python 2.4 doesn't automatically set 
4
-	  Exception.message.
5 3
 	* run-tests.py: Improved testsuite, added parameters support
6 4
 	  to run only specified tests, cleaned up win/posix integration.
5
+	* S3/Exception.py: Python 2.4 doesn't automatically set 
6
+	  Exception.message.
7 7
 
8 8
 2008-12-29  Michal Ludvig  <michal@logix.cz>
9 9
 
... ...
@@ -185,10 +185,10 @@ test_s3cmd("Buckets list", ["ls"],
185 185
 
186 186
 
187 187
 ## ====== Sync to S3
188
+exclude_unicode_args = []
188 189
 if have_unicode:
189
-	test_s3cmd("Sync to S3", ['sync', 'testsuite', 's3://s3cmd-autotest-1/xyz/', '--exclude', '.svn/*', '--exclude', '*.png', '--no-encrypt'])
190
-else:
191
-	test_s3cmd("Sync to S3", ['sync', 'testsuite', 's3://s3cmd-autotest-1/xyz/', '--exclude', '.svn/*', '--exclude', '*.png', '--exclude', 'unicode/*', '--no-encrypt'])
190
+	exclude_unicode_args = [ '--exclude', 'unicode/*' ]
191
+test_s3cmd("Sync to S3", ['sync', 'testsuite', 's3://s3cmd-autotest-1/xyz/', '--exclude', '.svn/*', '--exclude', '*.png', '--no-encrypt'] + exclude_unicode_args)
192 192
 
193 193
 
194 194
 ## ====== List bucket content
... ...
@@ -238,7 +238,7 @@ if have_wget:
238 238
 
239 239
 
240 240
 ## ====== Sync more to S3
241
-test_s3cmd("Sync more to S3", ['sync', 'testsuite', 's3://s3cmd-autotest-1/xyz/', '--exclude', '*.png', '--no-encrypt'])
241
+test_s3cmd("Sync more to S3", ['sync', 'testsuite', 's3://s3cmd-autotest-1/xyz/', '--exclude', '*.png', '--no-encrypt'] + exclude_unicode_args)
242 242
 
243 243
 
244 244
 ## ====== Rename within S3