-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional testing for pax installs #28
Conversation
set -x | ||
WORKDIR="$1" | ||
|
||
fail(){ echo "$@"; exit 8; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this, perhaps we can make these functions available in a common script for consistency (could be in another PR)
echo "Testing if zopen was installed at: ${zopenenv}/usr/local/zopen" | ||
[ ! -e "${zopenenv}/usr/local/zopen" ] && fail "File system not available" | ||
echo "Testing source of the zopen-config file" | ||
[ ! -e "${zopenenv}/etc/zopen-config" ] && fail "xopen configuration not available" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[ ! -e "${zopenenv}/etc/zopen-config" ] && fail "xopen configuration not available" | |
[ ! -e "${zopenenv}/etc/zopen-config" ] && fail "zopen configuration not available" |
|
||
echo "Testing source of configuration file" | ||
# shellcheck disable=SC1091 | ||
. "${zopenenv}/etc/zopen-config" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to check the return code as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good other than a few minor comments, great job!
Closing - the new install process looks different to what this PR was originally going to test! |
Tests the initial drop of pax install