diff options
author | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2016-03-25 17:27:05 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-03-31 11:17:06 +0900 |
commit | 6bb6ade9f84b6aa9dd6187a4bb229495e4a33cae (patch) | |
tree | 4e97ba0326e1dee956d69c24131099be3377136a /test/lib/quagga.py | |
parent | 88504f08b2ea5497f58f9f01e368bbbc4b33e9ac (diff) |
scenerio_test: add stderr to RuntimeError message
Signed-off-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>
Diffstat (limited to 'test/lib/quagga.py')
-rw-r--r-- | test/lib/quagga.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/test/lib/quagga.py b/test/lib/quagga.py index 924a3a82..3cab7447 100644 --- a/test/lib/quagga.py +++ b/test/lib/quagga.py @@ -262,9 +262,4 @@ class QuaggaBGPContainer(BGPContainer): daemon.append('zebra') for d in daemon: cmd = '/usr/bin/pkill {0} -SIGHUP'.format(d) - m = self.local(cmd, capture=True) - return_code = getattr(m, 'return_code') - if return_code != 0: - errmsg = "ret_code:%s, stdout:%s, stderr:%s" % (return_code, getattr(m, 'stdout'), getattr(m, 'stderr')) - raise Exception('reload_config error. errmsg: %s' % errmsg) - + self.local(cmd, capture=True) |