diff mbox series

[ndctl] test/security.sh: Replace cxl with $CXL

Message ID 1680707060-54-1-git-send-email-yangx.jy@fujitsu.com (mailing list archive)
State Accepted
Commit 26d9ce3351361631677e2cae933e3641540fa807
Headers show
Series [ndctl] test/security.sh: Replace cxl with $CXL | expand

Commit Message

Xiao Yang April 5, 2023, 3:04 p.m. UTC
Try to avoid the "cxl: command not found" error when
cxl command is not installed to $PATH.

Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>
---
 test/security.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Dave Jiang April 5, 2023, 4:09 p.m. UTC | #1
On 4/5/23 8:04 AM, Xiao Yang wrote:
> Try to avoid the "cxl: command not found" error when
> cxl command is not installed to $PATH.
> 
> Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>

Reviewed-by: Dave Jiang <dave.jiang@intel.com>

Thanks for the catch.

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

Patch

diff --git a/test/security.sh b/test/security.sh
index fb04aa6..4713288 100755
--- a/test/security.sh
+++ b/test/security.sh
@@ -225,7 +225,7 @@  if [ "$uid" -ne 0 ]; then
 fi
 
 modprobe "$KMOD_TEST"
-cxl list
+$CXL list
 setup
 check_prereq "keyctl"
 rc=1