From d640ff95a5daae46ba761acd8293a0096afeccb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zachar?= Date: Thu, 18 Jul 2024 13:46:08 +0200 Subject: [PATCH] Use _STAP_FILE value directly Hardoced to the path in ruby-doc but can be changed from envar --- systemtap-static-probes-in-ruby/runtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemtap-static-probes-in-ruby/runtest.sh b/systemtap-static-probes-in-ruby/runtest.sh index af0e14f..87f0bae 100755 --- a/systemtap-static-probes-in-ruby/runtest.sh +++ b/systemtap-static-probes-in-ruby/runtest.sh @@ -38,7 +38,7 @@ if [ -z "$COLLECTIONS" ]; then fi REQUIRES=${REQUIRES:-} RUBY=${RUBY:-ruby} -_STAP_FILE="`rpm -ql $PACKAGES | grep 'ruby-exercise.stp' 2>/dev/null`" +_STAP_FILE="${_STAP_FILE:-/usr/share/doc/ruby-doc/ruby-exercise.stp}" _LOG_FILE="ruby.log" _STAP_OUT="stap-out.log"