aboutsummaryrefslogtreecommitdiff
path: root/src/private/autojudging.php
diff options
context:
space:
mode:
authorcassiopc <cassiopc@gmail.com>2014-09-26 13:55:11 +0000
committercassiopc <cassiopc@gmail.com>2014-09-26 13:55:11 +0000
commitc00c84f2b36aabc95370bca8004f170c2d28ce60 (patch)
tree5a678db0c17d7168f2683093b2f4f2e7198421e2 /src/private/autojudging.php
parent6f1a5b6ee8191912818bba5ca5eb4d2ce201e06c (diff)
downloadboca-c00c84f2b36aabc95370bca8004f170c2d28ce60.tar.gz
boca-c00c84f2b36aabc95370bca8004f170c2d28ce60.zip
increased verbosity for error during tests scripts
Diffstat (limited to 'src/private/autojudging.php')
-rwxr-xr-xsrc/private/autojudging.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/private/autojudging.php b/src/private/autojudging.php
index 13ee658..2c3e01e 100755
--- a/src/private/autojudging.php
+++ b/src/private/autojudging.php
@@ -240,7 +240,12 @@ if(is_readable($cache . $ds . $run["inputoid"] . "." . $run["inputname"])) {
echo "Executing TEST SCRIPT " . $ex . " at " . getcwd() . "\n";
if(system($ex, $retval)===false) $retval=-1;
if($retval != 0) {
- echo "Error running test script -- please check the problem package\n";
+ echo "Error running test script -- please check the problem package or your installation\n";
+ echo "=====stderr======\n";
+ echo file_get_contents('stderr');
+ echo "\n=====stdout======\n";
+ echo file_get_contents('stdout');
+ echo "\n===========\n";
DBGiveUpRunAutojudging($contest, $site, $number, $ip, "Autojuging error: internal test script failed (" . $file . ")");
$cont=true;
break;