mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 13:07:09 +01:00
Fix convert tests
Use some shell trickery to get the pipelined command to work.
This commit is contained in:
parent
e8158194d6
commit
b15102608c
1 changed files with 2 additions and 1 deletions
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Reference in a new issue