From 01c448be06c992b9be3446f7ec68842aa9467d80 Mon Sep 17 00:00:00 2001 From: "J.P" <70083705+stapmoshun@users.noreply.github.com> Date: Sun, 26 Nov 2023 01:08:43 -0500 Subject: [PATCH] fix ping test --- .github/workflows/python-package-conda.yml | 4 ++-- tests/test_ping.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index 544a46ef..bcd4c8a9 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -43,7 +43,7 @@ jobs: - name: Test with pytest run: | conda install pytest - source activate base & pytest tests + source activate base & pytest -s tests build-windows: @@ -85,4 +85,4 @@ jobs: - name: Test with pytest run: | conda install pytest - source activate base & pytest -s tests + source activate base & pytest -s tests diff --git a/tests/test_ping.py b/tests/test_ping.py index 912eae9f..6f0628b5 100644 --- a/tests/test_ping.py +++ b/tests/test_ping.py @@ -12,6 +12,7 @@ from cloudmesh.common.Printer import Printer from cloudmesh.common.StopWatch import StopWatch from cloudmesh.common.util import HEADING +from distutils.util import strtobool Benchmark.debug() @@ -19,7 +20,7 @@ # https://github.com/actions/runner-images/issues/1519 ping does not work in github runner so we skip it. import os -github_action = os.getenv('GITHUB_ACTIONS') +github_action = strtobool(os.getenv('GITHUB_ACTIONS', 'false')) # multiping only works if you have root, so we can not use it # from multiping import MultiPing