Fix condition
This commit is contained in:
parent
1d0d92b040
commit
b25a862650
1 changed files with 1 additions and 2 deletions
|
|
@ -161,8 +161,7 @@ sub create_testsuite
|
||||||
# Check if test.ft has changed
|
# Check if test.ft has changed
|
||||||
if (-f "$tempdir/tests/test.ft")
|
if (-f "$tempdir/tests/test.ft")
|
||||||
{
|
{
|
||||||
log TRACE, -f "$destdir/test.ft", compare("$tempdir/tests/test.ft", "$destdir/test.ft");
|
if (! -f "$destdir/test.ft" || compare("$tempdir/tests/test.ft", "$destdir/test.ft"))
|
||||||
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: $!";
|
copy("$tempdir/tests/test.ft", "$destdir/test.ft") or croak "An error occurs while coping test.ft: $!";
|
||||||
|
|
|
||||||
Reference in a new issue