Merge "Update rally version"
[functest.git] / functest / opnfv_tests / security_scan / scripts / createfiles.py
1 #!/usr/bin/python
2 #
3 # Copyright (c) 2016 Red Hat
4 # Luke Hinds (lhinds@redhat.com)
5 # This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # 0.1: This script creates the needed local files into a tmp directory. Should
12 # '--clean' be passed, all files will be removed, post scan.
13
14
15 import os
16 import tempfile
17
18 files = ['results.xml', 'report.html', 'syschar.xml']
19
20
21 directory_name = tempfile.mkdtemp()
22
23 for i in files:
24     os.system("touch %s/%s" % (directory_name, i))
25
26 print directory_name