Skip to content

Commit

Permalink
apparently shell=True messes up linux. trying another method
Browse files Browse the repository at this point in the history
  • Loading branch information
wiggzz committed Jan 2, 2015
1 parent b1e47f1 commit 529d32e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests-unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def test_iotools_txt(self):
output = 'txt_test.out'
size = 10485760
subprocess.call(
['IOTools.py', 'pairgen', str(size), '-p', '10', '-o', output], shell=True)
['python',os.path.join('bin','IOTools.py'), 'pairgen', str(size), '-p', '10', '-o', output])

with open(output, 'r') as pairsfile:
for line in pairsfile:
Expand All @@ -235,7 +235,7 @@ def test_iotools_redis(self):
output = 'redis_test.out'
size = 10485760
subprocess.call(
['IOTools.py', 'pairgen', str(size), '-p', '10', '-o', output, '--redis'], shell=True)
['python',os.path.join('bin','IOTools.py'), 'pairgen', str(size), '-p', '10', '-o', output, '--redis'])
subprocess.call(
'cat {0} | redis-cli --pipe'.format(output), shell=True)

Expand Down

0 comments on commit 529d32e

Please sign in to comment.