From 0ee6dcfe197715334e3a3e4b1db0513b63af8efa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olive=CC=81r=20Falvai?= Date: Wed, 15 Nov 2023 13:53:30 +0100 Subject: [PATCH] Try dirname --- _tests/integration/agent_config_test_bitrise.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_tests/integration/agent_config_test_bitrise.yml b/_tests/integration/agent_config_test_bitrise.yml index e2d6e501..5e479552 100644 --- a/_tests/integration/agent_config_test_bitrise.yml +++ b/_tests/integration/agent_config_test_bitrise.yml @@ -8,28 +8,28 @@ workflows: inputs: - content: | set -ex - if [[ "$BITRISE_DATA_HOME_DIR" != $(realpath "$INTEGRATION_TEST_BINARY_PATH/../agent") ]]; then + if [[ "$BITRISE_DATA_HOME_DIR" != $(dirname $INTEGRATION_TEST_BINARY_PATH)/agent ]]; then echo "BITRISE_DATA_HOME_DIR does not point to the expected directory" exit 1 fi ls $BITRISE_DATA_HOME_DIR - if [[ "$BITRISE_SOURCE_DIR" != $(realpath "$INTEGRATION_TEST_BINARY_PATH/../agent/workspace/$BITRISE_APP_SLUG") ]]; then + if [[ "$BITRISE_SOURCE_DIR" != $(dirname $INTEGRATION_TEST_BINARY_PATH)/agent/workspace/$BITRISE_APP_SLUG ]]; then echo "BITRISE_SOURCE_DIR does not point to the expected directory" exit 1 fi ls $BITRISE_SOURCE_DIR - if [[ "$BITRISE_DEPLOY_DIR" != $(realpath "$INTEGRATION_TEST_BINARY_PATH/../agent/$BITRISE_APP_SLUG/$BITRISE_BUILD_SLUG/artifacts") ]]; then + if [[ "$BITRISE_DEPLOY_DIR" != $(dirname $INTEGRATION_TEST_BINARY_PATH)/agent/$BITRISE_APP_SLUG/$BITRISE_BUILD_SLUG/artifacts ]]; then echo "BITRISE_DEPLOY_DIR does not point to the expected directory" exit 1 fi ls $BITRISE_DEPLOY_DIR - if [[ "$BITRISE_TEST_DEPLOY_DIR" != $(realpath "$INTEGRATION_TEST_BINARY_PATH/../agent/$BITRISE_APP_SLUG/$BITRISE_BUILD_SLUG/test_results") ]]; then + if [[ "$BITRISE_TEST_DEPLOY_DIR" != $(dirname $INTEGRATION_TEST_BINARY_PATH)/agent/$BITRISE_APP_SLUG/$BITRISE_BUILD_SLUG/test_results ]]; then echo "BITRISE_TEST_DEPLOY_DIR does not point to the expected directory" exit 1 fi