We run this --version command to get the version of pkg:test, but it often has additional text that causes us to fail to parse the version:
PS D:\Dev\Google\dart-sdk\sdk\pkg\analysis_server> & 'D:\Tools\Dart\Latest (Bleeding Edge)\bin\dart' run test:test --version
Resolving dependencies in `D:\Dev\Google\dart-sdk\sdk`...
Downloading packages...
Got dependencies in `D:\Dev\Google\dart-sdk\sdk`.
Building package executable... (2.1s)
Built test:test.
1.30.0-wip
We should check only the last line.