Skip to content

Commit

Permalink
fix sh tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi committed Oct 27, 2021
1 parent 43230ba commit bd739fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin/common_gradle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ is_released_binary() {
find_module_jar_at() {
DIR=$1
MODULE=$2
REGEX="^${MODULE}.jar$"
REGEX="^${MODULE}-[0-9\\.]*((-[a-zA-Z]*(-[0-9]*)?)|(-SNAPSHOT))?.jar$"
if [ -d ${DIR} ]; then
cd ${DIR}
for f in *.jar; do
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/src/test/bash/gradle/bk_test_bin_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# * limitations under the License.
# */
# load test helpers
. ./bk_test_helpers_gradle
. ./bk_test_helpers

#------------------------------------------------------------------------------
# suite tests
Expand Down
8 changes: 4 additions & 4 deletions tests/scripts/src/test/bash/gradle/bk_test_helpers
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
BK_ARGV0=`basename "$0"`

# path to shUnit2 library. can be overridden by setting BK_SHUNIT_INC.
BK_SHUNIT=${BK_SHUNIT_INC:-../../../build/libs/lib/shunit2-2.1.7/shunit2}
BK_SHUNIT=${BK_SHUNIT_INC:-../../../../build/libs/lib/shunit2-2.1.7/shunit2}

# path to bk bin directory.
TESTDIR=`dirname "$0"`
BK_BINDIR=`cd ${TESTDIR}/../../../../../bin;pwd`
BK_HOMEDIR=`cd ${TESTDIR}/../../../../..;pwd`
BK_CONFDIR=`cd ${TESTDIR}/../../../../../conf;pwd`
BK_BINDIR=`cd ${TESTDIR}/../../../../../../bin;pwd`
BK_HOMEDIR=`cd ${TESTDIR}/../../../../../..;pwd`
BK_CONFDIR=`cd ${TESTDIR}/../../../../../../conf;pwd`

#
# test helper functions
Expand Down

0 comments on commit bd739fd

Please sign in to comment.