fix: error directory path in tests.sh

This commit is contained in:
yuefanxiao 2025-05-14 22:25:21 +08:00
parent 22d9233f8b
commit 0a01b5ec96

View File

@ -283,10 +283,10 @@ convert::expect_success "$k8s_cmd" "$k8s_output" || exit 1
convert::expect_success "$os_cmd" "$os_output" || exit 1 convert::expect_success "$os_cmd" "$os_output" || exit 1
# Test configmap generated by env_file with variable interpolation # Test configmap generated by env_file with variable interpolation
k8s_cmd="kompose -f $KOMPOSE_ROOT/script/test/fixtures/env-lookup/compose.yaml convert --stdout --with-kompose-annotation=false" k8s_cmd="kompose -f $KOMPOSE_ROOT/script/test/fixtures/envfile-interpolation/compose.yaml convert --stdout --with-kompose-annotation=false"
os_cmd="kompose --provider=openshift -f $KOMPOSE_ROOT/script/test/fixtures/env-lookup/compose.yaml convert --stdout --with-kompose-annotation=false" os_cmd="kompose --provider=openshift -f $KOMPOSE_ROOT/script/test/fixtures/envfile-interpolation/compose.yaml convert --stdout --with-kompose-annotation=false"
k8s_output="$KOMPOSE_ROOT/script/test/fixtures/env-lookup/output-k8s.yaml" k8s_output="$KOMPOSE_ROOT/script/test/fixtures/envfile-interpolation/output-k8s.yaml"
os_output="$KOMPOSE_ROOT/script/test/fixtures/env-lookup/output-os.yaml" os_output="$KOMPOSE_ROOT/script/test/fixtures/envfile-interpolation/output-os.yaml"
convert::expect_success_and_warning "$k8s_cmd" "$k8s_output" || exit 1 convert::expect_success_and_warning "$k8s_cmd" "$k8s_output" || exit 1
convert::expect_success_and_warning "$os_cmd" "$os_output" || exit 1 convert::expect_success_and_warning "$os_cmd" "$os_output" || exit 1