Skip to content

Commit

Permalink
Fixed unit test
Browse files Browse the repository at this point in the history
Do not read the real /sys/firmware/efi/efivars directory
from the testing system.
  • Loading branch information
lslezak committed Dec 14, 2020
1 parent 11ee020 commit 506a60f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/root_part_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@
let(:device_spec) { nil }

it "mounts /dev, /proc, /run, and /sys" do
allow(File).to receive(:exist?).with("/sys/firmware/efi/efivars").and_return(false)
allow(subject).to receive(:AddMountedPartition)

["/dev", "/proc", "/run", "/sys"].each do |d|
Expand Down

0 comments on commit 506a60f

Please sign in to comment.