Skip to contentSkip to conversation

test/security.sh: Replace cxl with $CXL

PATCH In review Xiao Yang 2 participants 2 messages Apr 5, 2023 libnvdimm: non-volatile memory device

lore
Share & tools
lore

Xiao Yang

author
#0 lore raw

PATCH 1/1 test/security.sh: Replace cxl with $CXL

Try to avoid the "cxl: command not found" error when cxl command is not installed to $PATH.

---
 test/security.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/security.sh +1 -1
index fb04aa6..4713288 100755
@@ -225,7 +225,7 @@ if [ "$uid" -ne 0 ]; then
 fi
 
 modprobe "$KMOD_TEST"
-cxl list
+$CXL list
 setup
 check_prereq "keyctl"
 rc=1
Signature · 1 line
2.37.3
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Xiao Yang

Try to avoid the "cxl: command not found" error when cxl command is not installed to $PATH.

Thanks for the catch.

Quoted 17 lines
---
  test/security.sh | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
test/security.sh +1 -1
index fb04aa6..4713288 100755
@@ -225,7 +225,7 @@ if [ "$uid" -ne 0 ]; then
  fi
 
  modprobe "$KMOD_TEST"
-cxl list
+$CXL list
  setup
  check_prereq "keyctl"
  rc=1