File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -148,12 +148,16 @@ def test_check_submit_success(self):
148148 self .local = False
149149 self .system = partition .fullname
150150
151- # pick up the programming environment of the partition
152- self .environs = [partition .environs [0 ].name ]
151+ # Pick up the programming environment of the partition
152+ # Prepend ^ and append $ so as to much exactly the given name
153+ self .environs = ['^' + partition .environs [0 ].name + '$' ]
153154
154155 returncode , stdout , _ = self ._run_reframe ()
155156 self .assertNotIn ('FAILED' , stdout )
156157 self .assertIn ('PASSED' , stdout )
158+
159+ # Assert that we have run only one test case
160+ self .assertIn ('Ran 1 test case(s)' , stdout )
157161 self .assertEqual (0 , returncode )
158162
159163 def test_check_failure (self ):
You can’t perform that action at this time.
0 commit comments