Add log
This commit is contained in:
parent
49e5dcddf4
commit
26f58dcaa6
7 changed files with 40 additions and 13 deletions
|
@ -163,7 +163,7 @@ sub create_testsuite
|
|||
{
|
||||
if (! -f "$destdir/test.ft" || ! compare("$tempdir/tests/test.ft", "$destdir/test.ft"))
|
||||
{
|
||||
log DEBUG, "test.ft has changed, update students ones.";
|
||||
log DEBUG, "test.ft has changed, UPDATE students ones.";
|
||||
copy("$tempdir/tests/test.ft", "$destdir/test.ft") or croak "An error occurs while coping test.ft: $!";
|
||||
chmod 0660, "$destdir/test.ft";
|
||||
|
||||
|
@ -178,6 +178,10 @@ sub create_testsuite
|
|||
}
|
||||
closedir $dh;
|
||||
}
|
||||
else
|
||||
{
|
||||
log DEBUG, "test.ft hasn't changed, KEEP students ones.";
|
||||
}
|
||||
}
|
||||
else {
|
||||
remove_tree($tempdir);
|
||||
|
|
Reference in a new issue