network: VPNConnect: Wait for ethernet state.

After restarting shill the ethernet service could be down while the test
is running. Adding a check for the ethernet service state to be online
after starting shill.

Also, adding a wait for the connection to be established after
configuring the static IP address.

BUG=b:157677857
TEST=tast run $DUT network.VPNConnect.l2tp_ipsec_psk

Change-Id: Ia6930cf25da5815ec2a227dd75001c42deec040d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/2248906
Tested-by: Arowa Suliman <arowa@chromium.org>
Commit-Queue: Arowa Suliman <arowa@chromium.org>
Reviewed-by: Shuo-Peng Liao <deanliao@chromium.org>
Reviewed-by: Oleh Lamzin <lamzin@google.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
(cherry picked from commit d8951ce0c7aa93d28fe2b2e6ba0839d0b25e163e)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/2354744
Reviewed-by: Yen-lin Lai <yenlinlai@google.com>
Commit-Queue: Shuo-Peng Liao <deanliao@chromium.org>
1 file changed
tree: b3f229ddaa5da02a688fb886872062936689f234
  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
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