[fix] metldown script can now returns 2/3 return code

This commit is contained in:
Laurent Peuch 2018-05-11 01:25:41 +02:00
parent 118b6fe51e
commit 7ea53f2ff7

View file

@ -666,7 +666,7 @@ def _check_if_vulnerable_to_meltdown():
stderr=subprocess.STDOUT) stderr=subprocess.STDOUT)
output, _ = call.communicate() output, _ = call.communicate()
assert call.returncode == 0 assert call.returncode in (0, 2, 3), "Return code: %s" % call.returncode
CVEs = json.loads(output) CVEs = json.loads(output)
assert len(CVEs) == 1 assert len(CVEs) == 1