Skip to content

Commit 1e6baf5

Browse files
author
sivakami
committed
set absolute path to invoke other scripts.
1 parent ca32dce commit 1e6baf5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.pipelines/swiftv2-long-running/scripts/datapath_tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ create_pn() {
4444
echo "SUBNET_ARM_ID: $SUBNET_ARM_ID"
4545

4646
# --- Create PodNetwork ---
47-
./create_pn.sh "$cluster_context" "$pn_name" "$VNET_GUID" "$SUBNET_GUID" "$SUBNET_ARM_ID"
47+
"$SCRIPT_DIR/create_pn.sh" "$cluster_context" "$pn_name" "$VNET_GUID" "$SUBNET_GUID" "$SUBNET_ARM_ID"
4848

4949
echo "PodNetwork ${pn_name} submitted successfully."
5050
}
@@ -59,7 +59,7 @@ create_pni() {
5959
local cluster=$7
6060

6161
echo "Creating PodNetworkInstance $pni_name for PN $pod_network_name on $cluster"
62-
./create_pni.sh "$KUBECONFIG_PATH" "$NAMESPACE" "$pni_name" "$pod_network_name" "$pni_type" "$reservations" "$cluster"
62+
"$SCRIPT_DIR/create_pni.sh" "$KUBECONFIG_PATH" "$NAMESPACE" "$pni_name" "$pod_network_name" "$pni_type" "$reservations" "$cluster"
6363
}
6464

6565
create_pod_on_node() {
@@ -71,7 +71,7 @@ create_pod_on_node() {
7171

7272
KUBECONFIG_PATH="/tmp/${cluster}.kubeconfig"
7373
echo "Creating pod '$pod_name' on node '$node_name' (PN: $pn_name, PNI: $pni_name)..."
74-
./create_pod.sh "$pod_name" "$node_name" "linux" "$pn_name" "$pni_name" "weibeld/ubuntu-networking" "$KUBECONFIG_PATH"
74+
"$SCRIPT_DIR/create_pod.sh" "$pod_name" "$node_name" "linux" "$pn_name" "$pni_name" "weibeld/ubuntu-networking" "$KUBECONFIG_PATH"
7575
}
7676

7777
get_nodes() {

0 commit comments

Comments
 (0)