Skip to content

Commit 85a2b40

Browse files
author
Vasileios Karakasis
committed
Add unit test for verbosity option
1 parent f225491 commit 85a2b40

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

unittests/test_cli.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,3 +387,13 @@ def test_show_env_config_unknown_env(self):
387387
self.assertNotIn('Traceback', stdout)
388388
self.assertNotIn('Traceback', stderr)
389389
self.assertEqual(1, returncode)
390+
391+
def test_verbosity(self):
392+
self.more_options = ['-vvvvv']
393+
self.system = 'testsys'
394+
self.action = 'list'
395+
returncode, stdout, stderr = self._run_reframe()
396+
self.assertNotEqual('', stdout)
397+
self.assertNotIn('Traceback', stdout)
398+
self.assertNotIn('Traceback', stderr)
399+
self.assertEqual(0, returncode)

0 commit comments

Comments
 (0)