Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
aoli-al committed Jul 29, 2024
1 parent 86733ee commit d2fc3fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ And you may find the recorded schedule in the `/tmp/report/` directory.
To replay a schedule, you may run the following command:

```bash
./bin/fray -cp ./out/ example.FrayExample --replay /tmp/report/schedule_0.json
./bin/fray --replay /tmp/report/schedule_0.json -cp ./out/ example.FrayExample
```


Expand Down
7 changes: 5 additions & 2 deletions core/src/main/kotlin/cmu/pasta/fray/core/TestRunner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cmu.pasta.fray.core

import cmu.pasta.fray.core.command.Configuration
import cmu.pasta.fray.core.logger.ConsoleLogger
import cmu.pasta.fray.core.scheduler.ReplayScheduler
import cmu.pasta.fray.runtime.Runtime
import java.nio.file.Paths
import kotlin.io.path.ExperimentalPathApi
Expand All @@ -19,8 +20,10 @@ class TestRunner(val config: Configuration) {
}

fun setup() {
prepareReportPath(config.report)
GlobalContext.registerLogger(config.logger)
if (config.scheduler !is ReplayScheduler) {
prepareReportPath(config.report)
GlobalContext.registerLogger(config.logger)
}
GlobalContext.registerLogger(ConsoleLogger())
GlobalContext.scheduler = config.scheduler
GlobalContext.config = config
Expand Down

0 comments on commit d2fc3fe

Please sign in to comment.