Skip to content

Commit

Permalink
perl-5.26.1-4: Add check for DISPLAY
Browse files Browse the repository at this point in the history
Its annoying if we fail after 30 minutes because we don't have an X11
display for Tk. Add code to fail early.
donald committed Feb 25, 2018
1 parent 1e2ae70 commit faf3764
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions perl-5.26.1-4.build.sh
Original file line number Diff line number Diff line change
@@ -33,6 +33,13 @@ mkdir -p $HOME

exec </dev/null # to many cpan modules might ask something

# Tk test needs display
#
if [ -z "$DISPLAY" ]; then
echo "DISPLAY not set. Required for Tk tests." >&2
exit 1
fi

# If you hit errors and want to rerun from where you failed,
# use "if false","fi" to avoid rebuilding everything before
# the error.

0 comments on commit faf3764

Please sign in to comment.