Skip to content

pkg:test version check fails when output contains package resolution info #5935

@DanTup

Description

@DanTup

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in testingRelates to test execution of Dart/Flutter tests for end usersis bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions