diff options
author | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2016-03-14 14:51:54 +0900 |
---|---|---|
committer | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2016-03-14 15:14:18 +0900 |
commit | 483fc497aca18cd6572f6ae12f0d52486d17e3cd (patch) | |
tree | 2188b41d82ad0afa755f64d462c1dcb47d6f688d /test/lib | |
parent | 376d5b3bb8fa65ace77bc3423e16ee2078038058 (diff) |
scenario_test: run scenario test on travis
Signed-off-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/quagga.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/lib/quagga.py b/test/lib/quagga.py index e76c7a8b..924a3a82 100644 --- a/test/lib/quagga.py +++ b/test/lib/quagga.py @@ -262,5 +262,9 @@ class QuaggaBGPContainer(BGPContainer): daemon.append('zebra') for d in daemon: cmd = '/usr/bin/pkill {0} -SIGHUP'.format(d) - self.local(cmd) + 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) |