Преглед на файлове

Print an error if no tests match in runner.

Otherwise it's confusing if you mistype the test name.

Change-Id: Idf32081958f85f3b5aeb8993a07f6975c27644f8
Reviewed-on: https://boringssl-review.googlesource.com/7500
Reviewed-by: Emily Stark (Dunn) <estark@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
kris/onging/CECPQ3_patch15
David Benjamin преди 8 години
родител
ревизия
270f0a7761
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. +6
    -0
      ssl/test/runner/runner.go

+ 6
- 0
ssl/test/runner/runner.go Целия файл

@@ -5087,11 +5087,17 @@ func main() {
go worker(statusChan, testChan, *shimPath, &wg)
}

var foundTest bool
for i := range testCases {
if len(*testToRun) == 0 || *testToRun == testCases[i].name {
foundTest = true
testChan <- &testCases[i]
}
}
if !foundTest {
fmt.Fprintf(os.Stderr, "No test named '%s'\n", *testToRun)
os.Exit(1)
}

close(testChan)
wg.Wait()


Зареждане…
Отказ
Запис