From fe101b97fc4aab8efcf737933ccbf120f11a162e Mon Sep 17 00:00:00 2001 From: Sean Gilligan Date: Thu, 6 Jul 2023 23:25:48 +0000 Subject: [PATCH] Update omnicore-rpc-tests.sh to use OMNIJ_BRANCH env variable to checkout a custom branch/tag --- test/pull-tester/omnicore-rpc-tests.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/pull-tester/omnicore-rpc-tests.sh b/test/pull-tester/omnicore-rpc-tests.sh index 7a79cdcfeb907..458be5c2d2b87 100755 --- a/test/pull-tester/omnicore-rpc-tests.sh +++ b/test/pull-tester/omnicore-rpc-tests.sh @@ -21,7 +21,12 @@ DATADIR="$TESTDIR/.bitcoin" # Start clean rm -rf "$BUILDDIR/test/tmp" -git clone https://github.com/OmniLayer/OmniJ.git $TESTDIR +if [ -z "$OMNIJ_BRANCH" ]; then + OMNIJ_BRANCH="master"; +fi + +git clone --branch $OMNIJ_BRANCH https://github.com/OmniLayer/OmniJ.git $TESTDIR + mkdir -p "$DATADIR/regtest" touch "$DATADIR/regtest/omnicore.log" cd $TESTDIR || exit