Skip to content

Commit

Permalink
fix test and also execute test during rpm build
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Dec 20, 2018
1 parent 652f18b commit b0a31f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
TESTS = \
fcoe_client_write_spec.rb \
fcoe_client_complex_include_test.rb \
DetectNetworkCards_spec.rb \
GetVlanInterfaces_spec.rb

Expand Down
3 changes: 2 additions & 1 deletion test/fcoe_client_complex_include_test.rb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require_relative "test_helper"

Yast.import "Popup"
Yast.import "FcoeClient"

class ComplexIncludeTest < Yast::Module
def initialize
Expand Down Expand Up @@ -34,7 +35,7 @@ def initialize
it "smokes not" do
expect(Yast::SCR)
.to receive(:Execute)
.with(path(".target.bash_output"), "fipvlan -c -s eth9")
.with(path(".target.bash_output"), "/usr/sbin/fipvlan -c -s eth9")
.and_return({"exit" => 0})
expect(Yast::FcoeClient).to receive(:GetFcoeVlanInterface).and_return("eth9.500")
expect { subject.HandleInterfacesDialog(nil, event) }.to_not raise_error
Expand Down

0 comments on commit b0a31f9

Please sign in to comment.