Skip to content

Commit

Permalink
Try dirname
Browse files Browse the repository at this point in the history
  • Loading branch information
ofalvai committed Nov 15, 2023
1 parent 8c4c157 commit 0ee6dcf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _tests/integration/agent_config_test_bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ee6dcf

Please sign in to comment.