changeset 5965:894ab347d808

tests: use double quotes in command lines - single quotes in command lines are not considered quotes on Windows
author domruf <dominikruf@gmail.com>
date Mon, 02 May 2016 23:32:55 +0200
parents 5e501b6ee639
children 04c82eb326fb
files kallithea/tests/other/manual_test_vcs_operations.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/tests/other/manual_test_vcs_operations.py	Fri Apr 29 16:53:49 2016 +0200
+++ b/kallithea/tests/other/manual_test_vcs_operations.py	Mon May 02 23:32:55 2016 +0200
@@ -110,15 +110,15 @@
     Command(cwd).execute('%s add %s' % (vcs, added_file))
 
     for i in xrange(kwargs.get('files_no', 3)):
-        cmd = """echo 'added_line%s' >> %s""" % (i, added_file)
+        cmd = """echo "added_line%s" >> %s""" % (i, added_file)
         Command(cwd).execute(cmd)
         author_str = 'User ǝɯɐᴎ <me@example.com>'
         if vcs == 'hg':
-            cmd = """hg commit -m 'committed new %s' -u '%s' %s """ % (
+            cmd = """hg commit -m "committed new %s" -u "%s" "%s" """ % (
                 i, author_str, added_file
             )
         elif vcs == 'git':
-            cmd = """EMAIL="me@example.com" git commit -m 'committed new %s' --author '%s' %s """ % (
+            cmd = """EMAIL="me@example.com" git commit -m "committed new %s" --author "%s" "%s" """ % (
                 i, author_str, added_file
             )
         Command(cwd).execute(cmd)