Tests: more fixtures.
Common methods from applications/proto.py converted to the fixtures. sysctl check moved to the specific file where it is using. Some options moved to the constructor to have early access.
This commit is contained in:
@@ -90,17 +90,6 @@ def findmnt():
|
||||
return out
|
||||
|
||||
|
||||
def sysctl():
|
||||
try:
|
||||
out = subprocess.check_output(
|
||||
['sysctl', '-a'], stderr=subprocess.STDOUT
|
||||
).decode()
|
||||
except FileNotFoundError:
|
||||
pytest.skip('requires sysctl')
|
||||
|
||||
return out
|
||||
|
||||
|
||||
def waitformount(template, timeout=50):
|
||||
for _ in range(timeout):
|
||||
if findmnt().find(template) != -1:
|
||||
|
||||
Reference in New Issue
Block a user