# TODO: How to include the folder creation in the test function instead of repeating it for all test functions
# TODO: pass over EVERY ASSERTION ERROR (i.e. continu test). But seems unlikely to be done easily
...
...
@@ -258,6 +260,17 @@ if __name__=="__main__":
parser.add_argument('-p','--no-zero-mode',dest='no_perms',action='store_false',help='tests will NOT include files without any permission (only applies to concerned tests)')
parser.add_argument('-d','--delete-tests',dest='delete_tests',action='store_true',help='delete the test folders when tests are over')
args=parser.parse_args()
# If effective user id is root change to nobody user (should be available on most machines...)
print(os.geteuid())
ifos.geteuid()==0:
try:
nobody=pwd.getpwnam('nobody')
except:
print("!!! Effective user id is root and user nobody could be be found: some test might be corrupted (e.g. umask)")