Properly close gRPC clients in nearby share remote fixture

The last few remote tests that run are constantly failing due to SSH
connection failures. The issue appears to be that we are reaching the
limit for the # of open SSH connections on the DUT. This is caused by
leaving gRPC client connections open between fixtures, so we need to
properly close those when we are done with them.

BUG=b:220942040
TEST=tast run -companiondut=cd1:<dut1> <dut2> '("group:nearby-share-remote")'

Change-Id: I35f0a1bada2e908bf31361d93868527fd38ee9be
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/3522757
Tested-by: Kyle Shimabukuro <kyleshima@chromium.org>
Auto-Submit: Kyle Shimabukuro <kyleshima@chromium.org>
Reviewed-by: Kshitij Pancholi <panchok@google.com>
(cherry picked from commit 5f7271a3d8c25c7fef788e0f5f2c3e797d4e5d3b)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/3561115
Tested-by: David Haddock <dhaddock@chromium.org>
Reviewed-by: Kyle Shimabukuro <kyleshima@chromium.org>
Commit-Queue: David Haddock <dhaddock@chromium.org>
1 file changed
tree: 086c07cbc75aa3c36f50c2aebee54d0a2f87f9e7
  1. android/
  2. helpers/
  3. src/
  4. tools/
  5. vars/
  6. .gitignore
  7. LICENSE
  8. OWNERS
  9. PRESUBMIT.cfg
  10. PRESUBMIT.py
  11. README.md
  12. unblocked_terms.txt
README.md

Tast (tests)

This repository contains integration tests that are run by Tast.

Directory structure

  • helpers/ - Source code for binaries executed by tests.
    • local/ - Helpers for local tests that are compiled and installed to /usr/local/libexec/tast/helpers/local/cros by the tast-local-helpers-cros package.
  • src/chromiumos/tast/
    • local/ - Code related to local (i.e. on-device or “client”) tests.
      • bundles/ - Local test bundles.
        • cros/ - The “cros” local test bundle, containing standard Chrome OS tests. Tests are packaged by category.
      • ... - Packages used only by local tests.
    • remote/ - Code related to remote (i.e. off-device or “server”) tests.
      • bundles/ - Remote test bundles.
        • cros/ - The “cros” remote test bundle, containing standard Chrome OS tests. Tests are packaged by category.
      • ... - Packages used only by remote tests.

Shared code, the main tast executable, the local_test_runner and remote_test_runner executables responsible for running bundles, and documentation are located in the tast repository.

GoDoc