Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
Reverting changes
Browse files Browse the repository at this point in the history
Signed-off-by: Vinoth.V <vinoth.v@seagate.com>
  • Loading branch information
Vinoth2101 committed Aug 23, 2022
1 parent 1951aef commit 381ebfc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions net/test/demo/demo-test-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ main()

read line
CONSOLE_SSH=$(echo "$line" | awk "{print \$1}")
CONSOLE_CMD="$(echo "$line" | cmd_get)"
CONSOLE_CMD="$(echo $line | cmd_get)"
while read line; do
node_ssh=$(echo "$line" | awk "{print \$1}")
node_space=$(echo "$line" | awk "{print \$2}")
node_cmd="$(echo "$line" | cmd_get)"
node_cmd="$(echo $line | cmd_get)"
node_set $NODES_NR "ssh" "$node_ssh"
node_set $NODES_NR "space" "$node_space"
node_set $NODES_NR "cmd" "$node_cmd"
Expand Down Expand Up @@ -96,7 +96,7 @@ for_each_node()
local func="$1"
shift 1
for i in $(seq 0 $(($NODES_NR - 1))); do
"$func" "$i" $@
$func $i $@
done
}

Expand Down Expand Up @@ -135,30 +135,30 @@ host_post()

node_host_pre()
{
host_pre "$(node_get "$1" ssh)"
host_pre "$(node_get $1 ssh)"
}

node_host_post()
{
host_post "$(node_get "$1" ssh)"
host_post "$(node_get $1 ssh)"
}

node_kernel_pre()
{
local ssh_credentials="$(node_get "$1" ssh)"
local ssh_credentials="$(node_get $1 ssh)"
local module="$(node_get $1 cmd)"
ssh_sudo "$ssh_credentials" insmod "$module"
}

node_kernel_post()
{
local ssh_credentials="$(node_get "$1" ssh)"
local ssh_credentials="$(node_get $1 ssh)"
ssh_sudo "$ssh_credentials" rmmod m0nettestd
}

node_user_pre()
{
local ssh_credentials="$(node_get "$1" ssh)"
local ssh_credentials="$(node_get $1 ssh)"
local cmd="$(node_get $1 cmd)"
ssh_sudo "$ssh_credentials" "$cmd" &
}
Expand All @@ -170,12 +170,12 @@ node_user_post()

node_pre()
{
node_$(node_get "$1" space)_pre "$@"
node_$(node_get $1 space)_pre "$@"
}

node_post()
{
node_$(node_get "$1" space)_post "$@"
node_$(node_get $1 space)_post "$@"
}

main "$@"

0 comments on commit 381ebfc

Please # to comment.