12538: Fix tests.
[arvados.git] / services / crunch-run / crunchrun.go
index 55edb99823c6ab6adac98740748baf5784a63a5c..9e054894ad52a265dc929882da654004a6d9fa0c 100644 (file)
@@ -1299,7 +1299,9 @@ func (runner *ContainerRunner) CleanupDirs() {
 func (runner *ContainerRunner) CommitLogs() error {
        runner.CrunchLog.Print(runner.finalState)
 
-       runner.arvMountLog.Close()
+       if runner.arvMountLog != nil {
+               runner.arvMountLog.Close()
+       }
        runner.CrunchLog.Close()
 
        // Closing CrunchLog above allows them to be committed to Keep at this