]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tests: Fix errors in functional test error path handling
authorTom Hromatka <tom.hromatka@oracle.com>
Mon, 7 Oct 2019 20:42:21 +0000 (14:42 -0600)
committerDhaval Giani <dhaval.giani@oracle.com>
Tue, 8 Oct 2019 17:51:22 +0000 (10:51 -0700)
commit5f2dd1abbfbf15493aeb1aaf77d9aaae978f3c12
tree3aed33430716bc4cc8f115735efb20ebca504456
parentfe446c17695b74106f7d64718afde02f90f216f6
tests: Fix errors in functional test error path handling

The RunError() exception class had two bugs that prevented
it from properly formatting a run exception:
    1) It wasn't being created properly due to a misplaced
       parenthesis
    2) It had a syntax error in its __str__() method where
       it was using self.message rather than self.command

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
tests/ftests/run.py