summaryrefslogtreecommitdiff
path: root/runner.go
diff options
context:
space:
mode:
authorFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-05 13:38:27 -0500
committerFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-05 13:38:27 -0500
commit7f3a568983470016bf99baafb4db47c8223c0494 (patch)
tree136c095e2cc68176e80eb59c38120165e1b739c9 /runner.go
parent2ccad1c9bc42093fb341faed26ea41c1463fcfae (diff)
downloaddeb-planr-7f3a568983470016bf99baafb4db47c8223c0494.tar.xz
deb-planr-7f3a568983470016bf99baafb4db47c8223c0494.zip
Preserve original ordering
Diffstat (limited to 'runner.go')
-rw-r--r--runner.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/runner.go b/runner.go
index 9c1e385..15f08ae 100644
--- a/runner.go
+++ b/runner.go
@@ -4,6 +4,7 @@ import (
"log"
"os"
"path"
+ "sort"
)
type Runner struct {
@@ -128,6 +129,8 @@ func (r Runner) Evaluate(tcs []TestCase) []TestResult {
for range testSets {
results = append(results, (<-c)...)
}
+
+ sort.Sort(ByReadIdx(results))
safeCd(r.dirs.Config())