diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-06-01 06:46:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-06-01 06:46:03 +0000 |
commit | d20dd9c32d3154aca1cea723c53eaa7418e0b5c5 (patch) | |
tree | b4afbec50c56c1bb2d07970c926498b3dd3411dc /testcases/security_scan/scripts | |
parent | 063eac6f79662606d11a68617e0cb2aaa1c449b6 (diff) | |
parent | c6caba5fd5261909ce0ab26b9b9dabbd35e0bf00 (diff) |
Merge "Add Apex based security scan code"
Diffstat (limited to 'testcases/security_scan/scripts')
-rw-r--r-- | testcases/security_scan/scripts/createfiles.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testcases/security_scan/scripts/createfiles.py b/testcases/security_scan/scripts/createfiles.py new file mode 100644 index 000000000..b828901a5 --- /dev/null +++ b/testcases/security_scan/scripts/createfiles.py @@ -0,0 +1,26 @@ +#!/usr/bin/python +# +# Copyright (c) 2016 Red Hat +# Luke Hinds (lhinds@redhat.com) +# This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# 0.1: This script creates the needed local files into a tmp directory. Should +# '--clean' be passed, all files will be removed, post scan. + + +import os +import tempfile + +files = ['results.xml', 'report.html', 'syschar.xml'] + + +directory_name = tempfile.mkdtemp() + +for i in files: + os.system("touch %s/%s" % (directory_name, i)) + +print directory_name |