Skip to content
Snippets Groups Projects
Commit e32de3a4 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Create logs dir after update

parent 633ba4d0
No related branches found
No related tags found
No related merge requests found
......@@ -99,10 +99,6 @@ class Tester():
# Add to python path
if root_dir not in sys.path:
sys.path.append(root_dir)
# Create logs dir
self.logs_dir = os.path.join(self.root_dir, 'logs')
os.makedirs(self.logs_dir, exist_ok=True)
print('Logs dir is "%s".' % self.logs_dir)
# Check that this script is run by root
if os.getuid() != 0 and not args.debug:
print('This script should be run as root user.')
......@@ -135,6 +131,10 @@ class Tester():
sys.exit(1)
# Print system info
self.print_system_info()
# Create logs dir
self.logs_dir = os.path.join(self.root_dir, 'logs')
os.makedirs(self.logs_dir, exist_ok=True)
print('Logs dir is "%s".' % self.logs_dir)
# Run tests
now, failures, out_of_support, log_content, html_report = self.run_tests(tests)
if args.send_email:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment