[fix] we need absolute path for meltdown check

This commit is contained in:
Laurent Peuch 2018-01-17 19:00:35 +01:00
parent 177914ee00
commit 54c9b8be10

View file

@ -657,7 +657,8 @@ def _check_if_vulnerable_to_meltdown():
# script taken from https://github.com/speed47/spectre-meltdown-checker
# script commit id is store directly in the script
SCRIPT_PATH = "./vendor/spectre-meltdown-checker/spectre-meltdown-checker.sh"
file_dir = os.path.split(__file__)[0]
SCRIPT_PATH = os.path.join(file_dir, "./vendor/spectre-meltdown-checker/spectre-meltdown-checker.sh")
# '--variant 3' corresponds to Meltdown
# example output from the script: