Skip to content

Commit

Permalink
Update test_solutions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
algattik committed Oct 12, 2019
1 parent 2463d53 commit 6a20333
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions integration-tests/test_solutions.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ def test_solution(self, folder, steps, minutes, throughput, extra_args):
"-l", os.environ['LOCATION'],
*extra_args]
env = dict(os.environ, REPORT_THROUGHPUT_MINUTES=minutes)
subprocess.run(cmd, env=env, cwd="../" + folder, check=True)
with open('../test-output.txt', 'r') as test_output_file:
cwd = "../" + folder
subprocess.run(cmd, env=env, cwd=cwd, check=True)
with open(cwd + '/test-output.txt', 'r') as test_output_file:
test_output = test_output_file.read()
assert test_output == ""

Expand Down

0 comments on commit 6a20333

Please sign in to comment.