Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
34e46db9
Commit
34e46db9
authored
Jul 12, 2017
by
Peter van 't Hof
Browse files
Fixing random error test
parent
c3a431d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
shiva/src/test/scala/nl/lumc/sasc/biopet/pipelines/shiva/ShivaVariantcallingTest.scala
View file @
34e46db9
...
...
@@ -19,7 +19,7 @@
*/
package
nl.lumc.sasc.biopet.pipelines.shiva
import
java.io.
{
File
,
FileOutputStream
}
import
java.io.
{
File
,
FileOutputStream
,
IOException
}
import
com.google.common.io.Files
import
nl.lumc.sasc.biopet.core.BiopetPipe
...
...
@@ -208,8 +208,15 @@ trait ShivaVariantcallingTestTrait extends TestNGSuite with Matchers {
}
// remove temporary run directory all tests in the class have been run
@AfterClass
def
removeTempOutputDir
()
:
Unit
=
{
dirs
.
foreach
(
FileUtils
.
deleteDirectory
)
@AfterClass
def
removeTempOutputDir
()
=
{
dirs
.
filter
(
_
.
exists
()).
foreach
{
dir
=>
try
{
FileUtils
.
deleteDirectory
(
dir
)
}
catch
{
case
e
:
IOException
if
e.getMessage.startsWith
(
"
Unable
to
delete
directory
"
)
=>
Logging
.
logger
.
error
(
e
.
getMessage
)
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment