X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=system%2FSubstrate.py;h=c026049dc81a49b2dea2ebacca9976b17c969a57;hb=5148b9f217612f5044034a3f2efd7a69a9a25529;hp=b9ffc666f99bdb87fb1cf7b7bea8e170d3cf4566;hpb=8666ae7f0291e8d115e166ef555f02abafc40fc8;p=tests.git diff --git a/system/Substrate.py b/system/Substrate.py index b9ffc66..c026049 100644 --- a/system/Substrate.py +++ b/system/Substrate.py @@ -581,7 +581,10 @@ class PlcLxcBox (PlcBox): command = ['/root/lxc-driver.sh', '-c', 'sense_all'] lxc_stat = self.backquote_ssh (command) for lxc_line in lxc_stat.split("\n"): - if not lxc_line: continue + if not lxc_line: + continue + if 'vplc' not in lxc_line: + continue lxcname = lxc_line.split(";")[0] pid = lxc_line.split(";")[1] timestamp = lxc_line.split(";")[2] @@ -963,7 +966,7 @@ class TestBox(Box): header ("No {} on {}".format(msg, self.line())) else: header ("{} on {}".format(msg, self.line())) - instances.sort(sort=timestamp_sort) + instances.sort(key=timestamp_key) for i in instances: print(i.line()) # show 'starting' regardless of verbose