From 31ff94add9c4043a753683d9e8b68733c69aa1ac Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Mon, 29 May 2023 16:45:49 +0100 Subject: 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. --- test/unit/option.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/unit/option.py') diff --git a/test/unit/option.py b/test/unit/option.py index cb3803dc..e00a043a 100644 --- a/test/unit/option.py +++ b/test/unit/option.py @@ -1,7 +1,13 @@ +import os +import platform + class Options: _options = { + 'architecture': platform.architecture()[0], + 'is_privileged': os.geteuid() == 0, 'skip_alerts': [], 'skip_sanitizer': False, + 'system': platform.system() } def __setattr__(self, name, value): -- cgit