Skip to content

Commit

Permalink
Add return code to show status
Browse files Browse the repository at this point in the history
Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
  • Loading branch information
sophia-guo committed May 14, 2024
1 parent 0983928 commit 84d467c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tooling/reproducible/windows_repro_build_compare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ NOTUSE_ARGS=("--assemble-exploded-image" "--configure-args")
SBOMLocalPath="$WORK_DIR/src_sbom.json"
DISTLocalPath="$WORK_DIR/src_jdk_dist.zip"
ScriptPath=$(dirname "$(realpath "$0")")
rc=0
# Function to check if a string is a valid URL
is_url() {
local url=$1
Expand Down Expand Up @@ -723,9 +724,12 @@ Compare_JDK() {
export PATH="$PATH:$CPW"

# Run Comparison Script
echo "cd $ScriptPath && ./repro_compare.sh temurin $WORK_DIR/compare/src_jdk temurin $WORK_DIR/compare/tar_jdk CYGWIN 2>&1" | sh &
wait
cd $ScriptPath || exit 1
./repro_compare.sh temurin $WORK_DIR/compare/src_jdk temurin $WORK_DIR/compare/tar_jdk CYGWIN 2>&1 &
pid=$!
wait $pid

rc=$?
# Display The Content Of reprotest.diff
echo ""
echo "---------------------------------------------"
Expand Down Expand Up @@ -795,3 +799,4 @@ echo "---------------------------------------------"
Compare_JDK
echo "---------------------------------------------"
Clean_Up_Everything
exit $rc

0 comments on commit 84d467c

Please sign in to comment.