Skip to content

Commit

Permalink
[guest-test] Code Check: revise based on SC2046
Browse files Browse the repository at this point in the history
guest-test/guest.test_executor.sh:16 - Quote this to prevent word splitting., refer to https://github.com/koalaman/shellcheck/wiki/SC2046
guest-test/tdx/tdx.test_executor.sh:16 - Quote this to prevent word splitting., refer to https://github.com/koalaman/shellcheck/wiki/SC2046
guest-test/tdx_osv_sanity/tdx_osv_sanity.test_executor.sh:16 - Quote this to prevent word splitting., refer to https://github.com/koalaman/shellcheck/wiki/SC2046

[Test Components] tdx
[Test Types] any
[Supported Devices] spr,emr,gnr,srf

Signed-off-by: Hongyu Ning <[email protected]>
  • Loading branch information
hongyuni authored and ysun committed Dec 8, 2023
1 parent 18e9a89 commit d233aa9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion guest-test/guest.test_executor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
###################### Variables ######################
# exec only if script being executed
if [ "${BASH_SOURCE[0]}" -ef "$0" ]; then
SCRIPT_DIR="$( cd $( dirname "$0" ) && pwd )"
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
echo "$SCRIPT_DIR"
else # bypass above execution in case of being sourced
echo "guest.test_executor.sh being sourced"
Expand Down
2 changes: 1 addition & 1 deletion guest-test/tdx/tdx.test_executor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

###################### Variables ######################
## common variables example ##
SCRIPT_DIR_LOCAL="$( cd $( dirname "$0" ) && pwd )"
SCRIPT_DIR_LOCAL="$( cd "$( dirname "$0" )" && pwd )"
echo "$SCRIPT_DIR_LOCAL"
# get test scenario config for $FEATURE tdx test_executor
source "$SCRIPT_DIR_LOCAL"/../test_params.py
Expand Down
2 changes: 1 addition & 1 deletion guest-test/tdx_osv_sanity/tdx_osv_sanity.test_executor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

###################### Variables ######################
## common variables example ##
SCRIPT_DIR_LOCAL="$( cd $( dirname "$0" ) && pwd )"
SCRIPT_DIR_LOCAL="$( cd "$( dirname "$0" )" && pwd )"
echo "$SCRIPT_DIR_LOCAL"
# get test scenario config for $FEATURE tdx test_executor
source "$SCRIPT_DIR_LOCAL"/../test_params.py
Expand Down

0 comments on commit d233aa9

Please sign in to comment.