mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
Allow meson to skip the test that requires root if root is unavailable
This commit is contained in:
committed by
Peter Hutterer
parent
0f5beb619e
commit
573d3d399e
@@ -612,7 +612,8 @@ def parse(input_string):
|
||||
|
||||
def main(argv):
|
||||
if not os.geteuid() == 0:
|
||||
sys.exit('Script must be run as root')
|
||||
print('Script must be run as root', file=sys.stderr)
|
||||
sys.exit(77)
|
||||
|
||||
os.environ['RATBAG_TEST'] = '1'
|
||||
resource.setrlimit(resource.RLIMIT_CORE, (0, 0))
|
||||
|
||||
Reference in New Issue
Block a user