standardize workflow test pattern

This commit is contained in:
eric sciple
2020-02-11 18:17:37 -05:00
parent f63b906f27
commit 60cf21b5e7
3 changed files with 84 additions and 32 deletions

13
__tests__/verify-java.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
if [ -z "$1" ]; then
echo "Must supply java version argument"
exit 1
fi
java_version="$(java -version 2>&1)"
echo "Found java version: $java_version"
if [ -z "$(echo $java_version | grep --fixed-strings $1)" ]; then
echo "Unexpected version"
exit 1
fi