mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-27 07:07:23 +00:00
chore(test): cleanup tmp file
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
parent
c512784503
commit
6e8352e847
@ -224,6 +224,9 @@ class FalcoTest(Test):
|
||||
output['actual'] = key
|
||||
output['expected'] = value
|
||||
output_strictly_contains.append(output)
|
||||
# Clean up file from previous tests, if any
|
||||
if not output['actual'] == 'stdout' and os.path.exists(output['actual']):
|
||||
os.remove(output['actual'])
|
||||
filedir = os.path.dirname(output['expected'])
|
||||
# Create the parent directory for the file if it doesn't exist.
|
||||
if not os.path.isdir(filedir):
|
||||
|
Loading…
Reference in New Issue
Block a user