diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2021-03-09 19:28:53 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2021-03-09 19:28:53 -0800 |
commit | 35803fc8881292ce2ea2f1cbf557630faec57bcd (patch) | |
tree | 96cb21bf822254fb087c86988827c1d8dd7753f3 | |
parent | 39e5c6950a484bbde22a0c6057ff40f8d4f9e9cc (diff) | |
download | chef-lcg/arm-builds.tar.gz |
that didn't work, check the filesystemlcg/arm-builds
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | spec/functional/resource/cron_spec.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/functional/resource/cron_spec.rb b/spec/functional/resource/cron_spec.rb index f742d8e259..36d7177f4d 100644 --- a/spec/functional/resource/cron_spec.rb +++ b/spec/functional/resource/cron_spec.rb @@ -80,10 +80,7 @@ describe Chef::Resource::Cron, :requires_root, :unix_only do end it "should create a crontab entry" do - puts shell_out!("cat /var/at/tabs/root").stdout - File.open("/var/at/tabs/root") do |f| - f.flock(File::LOCK_EX | File::LOCK_NB) or raise "couldn't lock" - end + puts shell_out!("df -k", timeout: 10).stdout shell_out!("echo '#foo' | crontab -u root -", timeout: 10) new_resource.run_action(:create) cron_should_exists(new_resource.name, new_resource.command) |