Skip to content

Commit

Permalink
Only delete tmp fstab if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Jan 2, 2018
1 parent 433992b commit bd5ed52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testsuite/tests/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module TestHelper
# before the test and dump it afterwards.
#
def run_test(function, input, default)
File.delete(FSTAB_NAME)
File.delete(FSTAB_NAME) if File.exist?(FSTAB_NAME)
fstab_desc = input[0]["etc"]["fstab"]
create_fstab(FSTAB_NAME, fstab_desc)

Expand Down

0 comments on commit bd5ed52

Please sign in to comment.