driver.py: fix aslr_off (#5477)
This commit is contained in:
parent
a6e9bce0dd
commit
59b07529b1
|
|
@ -1509,7 +1509,7 @@ class VlTest:
|
||||||
@property
|
@property
|
||||||
def aslr_off(self) -> str:
|
def aslr_off(self) -> str:
|
||||||
if VlTest._cached_aslr_off is None:
|
if VlTest._cached_aslr_off is None:
|
||||||
out = VtOs.run_capture('setarch --addr-no-randomize echo OK 2>/dev/null`', check=False)
|
out = VtOs.run_capture('setarch --addr-no-randomize echo OK 2>/dev/null', check=False)
|
||||||
if re.search(r'OK', out):
|
if re.search(r'OK', out):
|
||||||
VlTest._cached_aslr_off = "setarch --addr-no-randomize "
|
VlTest._cached_aslr_off = "setarch --addr-no-randomize "
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue