From: Martin Mares Date: Tue, 3 Jul 2007 07:48:19 +0000 (+0200) Subject: Fixed check of open-data problems from non-default directories. X-Git-Tag: python-dummy-working~315 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=dd1e8d7e853ee5a83a89982a6a5af0efce4efa66;p=moe.git Fixed check of open-data problems from non-default directories. --- diff --git a/bin/lib b/bin/lib index b912be7..e62db7e 100644 --- a/bin/lib +++ b/bin/lib @@ -389,5 +389,5 @@ function open-locate else SRCN=$SDIR/$PROBLEM$TEST.out fi - [ -f $SRCN ] || fatal "Output file $SRCN not found" + [ -f "$SDIR/$SRCN" ] || fatal "Output file $SRCN not found" } diff --git a/public/check b/public/check index a3bf810..95403a3 100755 --- a/public/check +++ b/public/check @@ -49,7 +49,7 @@ if [ $TASK_TYPE == open-data ] ; then [ -n "$TEST" ] || die "You need to specify test number for open data problems." pstart "Checking $TEST: " open-locate "$SRCFILE" - ln "$SRCN" $TDIR/$TEST.out + try-ln "$SDIR/$SRCN" $TDIR/$TEST.out syntax-check test-result 1 OK else