Skip to content

Commit

Permalink
After review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawel Pasterz committed Mar 9, 2020
1 parent cc3d31e commit b9ce727
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
7 changes: 6 additions & 1 deletion test_runner/src/main/kotlin/ftl/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ class Main : Runnable {
// BugSnag opens a non-daemon thread which will keep the JVM process alive.
// Flank must invoke exitProcess to exit cleanly.
// https://github.com/bugsnag/bugsnag-java/issues/151
exitProcess(CommandLine(Main()).execute(*args))
try {
exitProcess(CommandLine(Main()).execute(*args))
} catch (t: Throwable) {
t.printStackTrace()
exitProcess(CommandLine.ExitCode.SOFTWARE)
}
}
}
}
23 changes: 15 additions & 8 deletions test_runner/src/test/kotlin/Debug.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,19 @@ fun main() {

// Bugsnag keeps the process alive so we must call exitProcess
// https://github.com/bugsnag/bugsnag-java/issues/151
exitProcess(CommandLine(Main()).execute(
"--debug",
"firebase", "test",
"android", "run",
"--dry",
"-c=src/test/kotlin/ftl/fixtures/test_app_cases/flank-$quantity-$type.yml",
"--project=$projectId"
))
try {
exitProcess(
CommandLine(Main()).execute(
"--debug",
"firebase", "test",
"android", "run",
"--dry",
"-c=src/test/kotlin/ftl/fixtures/test_app_cases/flank-$quantity-$type.yml",
"--project=$projectId"
)
)
} catch (t: Throwable) {
t.printStackTrace()
exitProcess(CommandLine.ExitCode.SOFTWARE)
}
}

0 comments on commit b9ce727

Please sign in to comment.