summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-02 14:22:54 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-02 14:22:54 -0500
commitee18c157d4b9a859d86534e73e0bdb1ff548234d (patch)
treef1af90c80ffac45983f7b01df04e4fc4e72dad24 /tests
parente27c482f67450023464a34329be5aeacb23b1c78 (diff)
downloadhorizon-ee18c157d4b9a859d86534e73e0bdb1ff548234d.tar.gz
horizon-ee18c157d4b9a859d86534e73e0bdb1ff548234d.tar.bz2
horizon-ee18c157d4b9a859d86534e73e0bdb1ff548234d.tar.xz
horizon-ee18c157d4b9a859d86534e73e0bdb1ff548234d.zip
hscript: Implement Filesystem::execute, add test
Diffstat (limited to 'tests')
-rw-r--r--tests/spec/simulator_spec.rb7
1 files changed, 7 insertions, 0 deletions
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