Skip to content

Commit

Permalink
spec/xfstests_spec.rb: switch to test is_test_in_group function
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Li <[email protected]>
  • Loading branch information
rli9 committed May 9, 2024
1 parent 16717da commit cfab43d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/xfstests_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require "#{LKP_SRC}/lib/bash"

describe 'xfstests' do
describe 'is_test_belongs_to_group' do
describe 'is_test_in_group' do
before(:all) do
@benchmark_root = File.join(LKP_SRC, 'spec', 'benchmark_root')
end
Expand All @@ -22,7 +22,7 @@
{ test: 'ext4-029', group: 'ext4-logdev' },
{ test: 'xfs-275', group: 'xfs-logdev' }
].each do |entry|
expect(Bash.call("source #{LKP_SRC}/lib/tests/xfstests.sh; export BENCHMARK_ROOT=#{@benchmark_root}; is_test_belongs_to_group \"#{entry[:test]}\" \"#{entry[:group]}\"; echo $?")).to eq('0')
expect(Bash.call("source #{LKP_SRC}/lib/tests/xfstests.sh; export BENCHMARK_ROOT=#{@benchmark_root}; is_test_in_group \"#{entry[:test]}\" \"#{entry[:group]}\"; echo $?")).to eq('0')
end
end

Expand All @@ -34,7 +34,7 @@
{ test: 'generic-510', group: 'generic-dax' },
{ test: 'xfs-114', group: 'xfs-scratch-reflink-[0-9]*' }
].each do |entry|
expect(Bash.call("source #{LKP_SRC}/lib/tests/xfstests.sh; export BENCHMARK_ROOT=#{@benchmark_root}; is_test_belongs_to_group \"#{entry[:test]}\" \"#{entry[:group]}\"; echo $?")).to eq('1')
expect(Bash.call("source #{LKP_SRC}/lib/tests/xfstests.sh; export BENCHMARK_ROOT=#{@benchmark_root}; is_test_in_group \"#{entry[:test]}\" \"#{entry[:group]}\"; echo $?")).to eq('1')
end
end
end
Expand Down

0 comments on commit cfab43d

Please sign in to comment.