• James Lin's avatar
    Give `_runFlutterTest` the ability to validate command output · c02b805c
    James Lin authored
    In another change (#37646), I want to test that a test fails and
    prints expected output.  I didn't see an existing way to do that, so
    I modified `_runFlutterTest` and `runCommand` to allow capturing the
    output.  Currently capturing and printing output are mutually
    exclusive since we don't need both.
    
    Some awkward bits:
    * There already exists a `runAndGetStdout` function that is very
      similar to `runCommand`, and this change makes the conceptual
      distinction more confusing.
    
    * `runFlutterTest` has multiple code paths for different
      configurations.  I don't understand what the different paths are
      for, and I added output checking only along one of them.
    c02b805c
Name
Last commit
Last update
..
test Loading commit data...
README.md Loading commit data...
analyze-sample-code.dart Loading commit data...
analyze.dart Loading commit data...
cirrus_setup.sh Loading commit data...
codelabs_build_test.sh Loading commit data...
deploy_gallery.sh Loading commit data...
docs.sh Loading commit data...
download_android_sdk.sh Loading commit data...
download_goldctl.ps1 Loading commit data...
download_goldctl.sh Loading commit data...
download_open_jdk.sh Loading commit data...
firebase_testlab.sh Loading commit data...
flutter_compact_formatter.dart Loading commit data...
prepare_package.dart Loading commit data...
pubspec.yaml Loading commit data...
run_command.dart Loading commit data...
serviceaccount.enc Loading commit data...
test.dart Loading commit data...
unpublish_package.dart Loading commit data...