From d90ac4c662c4c86f35d3f302e44831845917e028 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 14 Oct 2019 12:52:11 -0500 Subject: tests: Test mount execution with options --- tests/spec/simulator.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/spec') diff --git a/tests/spec/simulator.rb b/tests/spec/simulator.rb index d3d8afa..1b51b9d 100644 --- a/tests/spec/simulator.rb +++ b/tests/spec/simulator.rb @@ -43,6 +43,15 @@ mount /dev/gwyn/home /target/home mount /dev/sda2 /target/usr mount /dev/gwyn/source /target/usr/src") end + it "handles options correctly" do + use_fixture '0075-mount-options.installfile' + run_simulate + expect(last_command_started.stdout).to include(" +mount /dev/sda1 /target/ +mount -o relatime /dev/gwyn/home /target/home +mount /dev/sda2 /target/usr +mount -o noatime /dev/gwyn/source /target/usr/src") + end end context "simulating 'hostname' execution" do it "sets the hostname properly" do -- cgit v1.2.3-70-g09d2