Fix condition
This commit is contained in:
parent
1d0d92b040
commit
b25a862650
|
@ -161,8 +161,7 @@ sub create_testsuite
|
|||
# Check if test.ft has changed
|
||||
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.";
|
||||
copy("$tempdir/tests/test.ft", "$destdir/test.ft") or croak "An error occurs while coping test.ft: $!";
|
||||
|
|
Reference in New Issue
Block a user