From ee18c157d4b9a859d86534e73e0bdb1ff548234d Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 2 Nov 2019 14:22:54 -0500 Subject: hscript: Implement Filesystem::execute, add test --- tests/spec/simulator_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/spec/simulator_spec.rb b/tests/spec/simulator_spec.rb index 74426ba..fd2f412 100644 --- a/tests/spec/simulator_spec.rb +++ b/tests/spec/simulator_spec.rb @@ -78,4 +78,11 @@ printf '%s\\t%s\\t%s\\t%s\\t0\\t0\\n' /dev/gwyn/source /usr/src auto noatime >> expect(last_command_started.stdout).to include("network={\n\tssid=\"The New Fox 5G\"\n\tpsk=\"shh, sekrit!\"\n\tpriority=5\n}") end end + context "simulating 'fs' execution" do + it "creates ext4 filesystems correctly" do + use_fixture '0179-fs-basic.installfile' + run_simulate + expect(last_command_started.stdout).to include("mkfs.ext4 -q -z /tmp/undo-sdb1 /dev/sdb1") + end + end end -- cgit v1.2.3-60-g2f50