]> arthur.barton.de Git - bup.git/blobdiff - t/root-status
tests: move all tests to test/
[bup.git] / t / root-status
diff --git a/t/root-status b/t/root-status
deleted file mode 100755 (executable)
index c37806d..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-"""": # -*-python-*-
-bup_python="$(dirname "$0")/../config/bin/python" || exit $?
-exec "$bup_python" "$0" ${1+"$@"}
-"""
-# end of bup preamble
-
-from __future__ import absolute_import, print_function
-import os, sys
-
-if sys.platform.startswith('cygwin'):
-    groups = os.getgroups()
-    if 544 in groups or 0 in groups:
-        print('root')
-    else:
-        print('none')
-else:
-    if os.environ.get('FAKEROOTKEY'):
-        print('fake')
-    else:
-        if os.geteuid() == 0:
-            print('root')
-        else:
-            print('none')