diff --git a/src/functionalTest/groovy/com/autonomousapps/AbstractFunctionalSpec.groovy b/src/functionalTest/groovy/com/autonomousapps/AbstractFunctionalSpec.groovy index aa6f504fc..51df727a8 100644 --- a/src/functionalTest/groovy/com/autonomousapps/AbstractFunctionalSpec.groovy +++ b/src/functionalTest/groovy/com/autonomousapps/AbstractFunctionalSpec.groovy @@ -38,16 +38,20 @@ abstract class AbstractFunctionalSpec extends Specification { * Default environment variables on Github Actions */ private static boolean isCi = System.getenv("CI") == "true" - -// def cleanup() { -// // Delete fixtures on CI to prevent disk space growing out of bounds -// if (gradleProject != null && isCi) { -// try { -// gradleProject.rootDir.deleteDir() -// } catch (Throwable t) { -// } -// } -// } + + def cleanup() { + // Delete fixtures on CI to prevent disk space growing out of bounds + if (gradleProject != null && isCi) { + def dir = gradleProject.rootDir + try { + println("Deleting $dir...") + dir.deleteDir() + } catch (Throwable t) { + System.err.println("Error deleting $dir: ${t.localizedMessage}") + t.printStackTrace() + } + } + } protected static Boolean quick() { return System.getProperty('com.autonomousapps.quick').toBoolean()