Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/SLE-12-SP2' into sp2_merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Aug 10, 2017
2 parents 2e5f0c6 + e3f8224 commit 5ce1cf0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ mkinstalldirs
stamp-h*
*.pot
*.ami
/coverage
/.yardoc
/doc
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ services:

before_install:
- docker build -t yast-tune-image .
# list the installed packages (just for easier debugging)
- docker run --rm -it yast-tune-image rpm -qa | sort

script:
# the "yast-travis-ruby" script is included in the base yastdevel/ruby image
# see https://github.com/yast/docker-yast-ruby/blob/master/yast-travis-ruby
Expand Down
4 changes: 3 additions & 1 deletion test/system_settings_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@
KERNEL_SYSRQ_FILE = "/proc/sys/kernel/sysrq"

subject(:settings) { Yast::SystemSettings }
let(:scheduler) { "cfq" }

before do
allow(File).to receive(:exist?).and_return(true)
allow(Yast::Bootloader).to receive(:Read)
allow(Yast::Bootloader).to receive(:kernel_param)
.with(:common, "elevator").and_return(scheduler)
settings.main
end

Expand All @@ -25,7 +28,6 @@
describe "#Read" do
let(:kernel_sysrq) { "1" }
let(:sysctl_sysrq) { "1" }
let(:scheduler) { "cfq" }

before do
allow(Yast::SCR).to receive(:Read)
Expand Down
4 changes: 2 additions & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
add_filter "/spec/"
end

# for coverage we need to load all ruby files
src_location = File.expand_path("../../src", __FILE__)
Dir["#{src_location}/{modules,lib}/**/*.rb"].each { |f| require_relative f }
# track all ruby files under src
SimpleCov.track_files("#{src_location}/**/*.rb")

# use coveralls for on-line code coverage reporting at Travis CI
if ENV["TRAVIS"]
Expand Down

0 comments on commit 5ce1cf0

Please sign in to comment.