Skip to content

Commit 73e27df

Browse files
committed
spec/nvml_spec.rb: resolve missing suite parameter
Signed-off-by: Philip Li <[email protected]>
1 parent 25da532 commit 73e27df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/nvml_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{ group: 'scope', testcases: 'scope' },
1616
{ group: 'traces', testcases: 'traces_custom_function traces_pmem traces' }
1717
].each do |entry|
18-
expect(Bash.call("source #{LKP_SRC}/lib/tests/nvml.sh; source #{LKP_SRC}/lib/debug.sh; export BENCHMARK_ROOT=#{@benchmark_root}; export group=#{entry[:group]}; check_group_param; echo $testcases")).to eq(entry[:testcases])
18+
expect(Bash.call("source #{LKP_SRC}/lib/tests/nvml.sh; BENCHMARK_ROOT=#{@benchmark_root} group=#{entry[:group]} suite=nvml check_group_param 1>/dev/null; echo $testcases")).to eq(entry[:testcases])
1919
end
2020
end
2121

@@ -24,7 +24,7 @@
2424
{ group: 'wronggroup', output: 'Parameter group wronggroup is invalid' },
2525
{ group: 'wrong_group', output: 'single test wrong_group is not found' }
2626
].each do |entry|
27-
expect(Bash.call("source #{LKP_SRC}/lib/tests/nvml.sh; source #{LKP_SRC}/lib/debug.sh; export BENCHMARK_ROOT=#{@benchmark_root}; export group=#{entry[:group]}; check_group_param 2>&1", exitstatus: [99])).to match(/#{entry[:output]}/)
27+
expect(Bash.call("source #{LKP_SRC}/lib/tests/nvml.sh; BENCHMARK_ROOT=#{@benchmark_root} group=#{entry[:group]} suite=nvml check_group_param 2>&1 1>/dev/null", exitstatus: [99])).to match(/#{entry[:output]}/)
2828
end
2929
end
3030
end

0 commit comments

Comments
 (0)