self.root.chmod(0o750)# TODO: add as command line option ?
self.root.chmod(0o750)# TODO: add as command line option ?
else:
else:
root=pathlib.Path('root')
self.root=pathlib.Path(root)
def__del__(self):
def__del__(self):
...
@@ -257,8 +257,9 @@ if __name__=="__main__":
...
@@ -257,8 +257,9 @@ if __name__=="__main__":
parser=argparse.ArgumentParser(description='Test an ultra-cp program according to the I/O TP.')
parser=argparse.ArgumentParser(description='Test an ultra-cp program according to the I/O TP.')
parser.add_argument('prog_path',help='the tested program path (must be an executable file)')
parser.add_argument('prog_path',help='the tested program path (must be an executable file)')
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('-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_false',help='delete the test folders when tests are over')