From b15102608ceefff5bbef4895752daff6e98c4cee Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sun, 21 Dec 2014 09:50:57 -0500 Subject: [PATCH] Fix convert tests Use some shell trickery to get the pipelined command to work. --- test/test_convert.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_convert.py b/test/test_convert.py index 8b3ec279a..05d643e3e 100644 --- a/test/test_convert.py +++ b/test/test_convert.py @@ -33,7 +33,8 @@ class TestHelper(helper.TestHelper): .format(tag)) # FIXME This is not portable. For windows we need to use our own # python script that performs the same task. - return u'cp $source $dest; printf {0} >> $dest'.format(tag) + return u'sh -c "cp \'$source\' \'$dest\'; ' \ + u'printf {0} >> \'$dest\'"'.format(tag) def assertFileTag(self, path, tag): """Assert that the path is a file and the files content ends with `tag`.