Skip to content

Commit

Permalink
Fix pbench-linpack options handling bug (#2926)
Browse files Browse the repository at this point in the history
Remove extra shift.  Fixes #2924.

Add a simple test.  (The invocation is a bit complicated: it's supposed to be
a remote invocation to check for the existence of an
executable, so it needs to be told where the "installation"
directory is.)
  • Loading branch information
ndokos authored Jun 28, 2022
1 parent 52e8313 commit 0f12276
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
1 change: 0 additions & 1 deletion agent/bench-scripts/pbench-linpack
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ while true; do
exit 0
;;
--)
shift
break
;;
*)
Expand Down
1 change: 1 addition & 0 deletions agent/bench-scripts/tests/pbench-linpack/test-68.env
1 change: 1 addition & 0 deletions agent/bench-scripts/tests/pbench-linpack/test-68.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--pre-check-only 11.1.3 ${PBENCH_LINPACK_INSTALL_PREFIX_DIR}
1 change: 1 addition & 0 deletions agent/bench-scripts/tests/pbench-linpack/test-68.pre
11 changes: 11 additions & 0 deletions agent/bench-scripts/tests/pbench-linpack/test-68.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
+++ Running test-68 pbench-linpack
--- Finished test-68 pbench-linpack (status=0)
+++ pbench tree state
/var/tmp/pbench-test-bench/pbench-agent
/var/tmp/pbench-test-bench/pbench-agent/tmp
/var/tmp/pbench-test-bench/pbench-agent/tools-v1-default
/var/tmp/pbench-test-bench/pbench-agent/tools-v1-default/__trigger__
/var/tmp/pbench-test-bench/pbench-agent/tools-v1-default/testhost.example.com
/var/tmp/pbench-test-bench/pbench-agent/tools-v1-default/testhost.example.com/mpstat
/var/tmp/pbench-test-bench/pbench-agent/tools-v1-default/testhost.example.com/sar
--- pbench tree state

0 comments on commit 0f12276

Please sign in to comment.