mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
Remove any inspec.lock
file before testing vendoring. (#3377)
Signed-off-by: Jared Quick <jquick@chef.io>
This commit is contained in:
parent
f6ecb4c842
commit
30e43c294d
1 changed files with 2 additions and 0 deletions
|
@ -131,6 +131,8 @@ Test Summary: 0 successful, 0 failures, 0 skipped
|
|||
# it exists to avoid surprises when checking cache contents later.
|
||||
vendor_dir = File.join(inheritance_profile, 'vendor')
|
||||
FileUtils.remove_dir(vendor_dir) if File.exist?(vendor_dir)
|
||||
lock_file = File.join(inheritance_profile, 'inspec.lock')
|
||||
File.delete(lock_file) if File.exist?(lock_file)
|
||||
|
||||
command = 'exec ' + inheritance_profile + ' --no-create-lockfile'
|
||||
out = inspec_with_env(command, INSPEC_CONFIG_DIR: tmpdir)
|
||||
|
|
Loading…
Reference in a new issue