]> mj.ucw.cz Git - moe.git/commitdiff
Fixed check of open-data problems from non-default directories.
authorMartin Mares <mj@ucw.cz>
Tue, 3 Jul 2007 07:48:19 +0000 (09:48 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 3 Jul 2007 07:48:19 +0000 (09:48 +0200)
bin/lib
public/check

diff --git a/bin/lib b/bin/lib
index b912be78b49eb3dd7d80079838faf8188d82391d..e62db7ee2eaec26b5959c1f8eae15871f0715dfe 100644 (file)
--- 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"
 }
index a3bf810fc97571fc4b582d730b244974298ebfad..95403a386f0539a4d2cadd67058bfbc275735b4b 100755 (executable)
@@ -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