Skip to content

Commit af6d0ad

Browse files
author
Matthias Koeppe
committed
build/pkgs/sage_sws2rst/spkg-install: Do not call spkg-check from here any more
1 parent 3c2939a commit af6d0ad

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

build/pkgs/sage_sws2rst/spkg-check

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
#! /bin/sh
2-
cd src && ./check.sh
2+
cd src
3+
./check.sh
4+
if [ $? -ne 0 ]; then
5+
if [ "$SAGE_CHECK" = "warn" ]; then
6+
echo >&2 "Warning: Failures testing package $PKG_NAME (ignored)"
7+
else
8+
echo >&2 "Error testing package $PKG_NAME"
9+
exit 1
10+
fi
11+
fi

build/pkgs/sage_sws2rst/spkg-install

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,3 @@ if [ "$SAGE_EDITABLE" = yes ]; then
1818
else
1919
sdh_pip_install .
2020
fi
21-
cd ..
22-
# For type=script packages, spkg-check is not run
23-
case "$SAGE_CHECK" in
24-
yes)
25-
./spkg-check
26-
;;
27-
warn)
28-
./spkg-check || echo >&2 "Warning: Failures testing package sage_sws2rst (ignored)"
29-
;;
30-
esac

0 commit comments

Comments
 (0)