Skip to content

Commit

Permalink
remove PULLREQUEST_CDASH_TRACK from env in test_default
Browse files Browse the repository at this point in the history
Because the PR testing will have it and fail if we don't
  • Loading branch information
prwolfe committed Aug 6, 2019
1 parent 4d62e69 commit 9bd0f21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/std/unittests/TestPullRequestLinuxDriverTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,10 @@ def setUp(self):

def test_default(self):
expected_output = 'PULLREQUEST_CDASH_TRACK isn\'t set, using default value\n'
with self.IOredirect as m_output:
with self.IOredirect as m_output, \
mock.patch.dict(os.environ,
{'NOT_PULLREQUEST_CDASH_TRACK': self.test_track},
clear=True):
self.assertEqual('Pull Request',
PullRequestLinuxDriverTest.getCDashTrack())
self.assertEqual(expected_output, m_output.getvalue())
Expand Down

0 comments on commit 9bd0f21

Please sign in to comment.