[DTrace-devel] [PATCH 1/2] test: Fix incomplete line in .x file

eugene.loh at oracle.com eugene.loh at oracle.com
Fri Apr 15 18:53:50 UTC 2022


From: Eugene Loh <eugene.loh at oracle.com>

A line in tst.stack_fbt.x had been put back mysteriously chopped off,
causing the script to fail and tst.stack_fbt.d and tst.stack3_fbt.d
to be skipped inadvertently.

Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
---
 test/unittest/stack/tst.stack_fbt.x | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/unittest/stack/tst.stack_fbt.x b/test/unittest/stack/tst.stack_fbt.x
index 86f2694a..4561df8b 100755
--- a/test/unittest/stack/tst.stack_fbt.x
+++ b/test/unittest/stack/tst.stack_fbt.x
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-read MAJOR MINOR <<< `uname -r | grep -Eo '^[0-9]+\.[0-9]+'
+read MAJOR MINOR <<< `uname -r | grep -Eo '^[0-9]+\.[0-9]+' | tr '.' ' '`
 
 if [ $MAJOR -eq 5 -a $MINOR -lt 8 ]; then
 	exit 0
-- 
2.18.4




More information about the DTrace-devel mailing list