Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTodorovskiIBM committed Feb 22, 2024
1 parent a86e11a commit 165d199
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/zopen_check_usage
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ MYDIR="$(cd "$(dirname "$0")" > /dev/null 2>&1 && pwd -P)"

zopen_save_and_clear

export ZOPEN_BETA_FEATURES=1 # This is a beta feature

zopenenv="${WORKDIR}/zopen-env-$(basename "$0")"
[ -e "${zopenenv}" ] && echo "Clearing existing work env" && rm -rf "${zopenenv}"

Expand All @@ -32,8 +30,8 @@ zopen init -y --enable-stats "${zopenenv}" # force enable statistics

. ${zopenenv}/etc/zopen-config

jsonFilePath="${zopenenv}/etc/zopen/analytics.json"
[ ! -e "${zopenenv}/etc/zopen/analytics.json" ] && echo "Analytics json is not available" && exit 8
jsonFilePath="${zopenenv}/var/lib/zopen/analytics.json"
[ ! -e "$jsonFilePath" ] && echo "Analytics json $jsonFilePath is not available" && exit 8

profile=$(jq -r '.profile' "$jsonFilePath")
if [ -z "$profile" ]; then
Expand Down

0 comments on commit 165d199

Please sign in to comment.