From abf91ac218c2386a2366eae243a15b1215f47832 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 2 Mar 2022 16:39:13 -0700 Subject: [PATCH] task.tests: Fix reference to python binary It was trying to use `python` as opposed to `python3`. Signed-off-by: Zack Cerza --- teuthology/task/tests/test_run.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/teuthology/task/tests/test_run.py b/teuthology/task/tests/test_run.py index 341a5cde7a..f86b0b4f13 100644 --- a/teuthology/task/tests/test_run.py +++ b/teuthology/task/tests/test_run.py @@ -17,7 +17,7 @@ class TestRun(object): result = "" try: ctx.cluster.run( - args=["python", "-c", "assert False"], + args=["python3", "-c", "assert False"], label="working as expected, nothing to see here" ) except CommandFailedError as e: @@ -28,13 +28,13 @@ class TestRun(object): def test_command_failed_no_label(self, ctx, config): with pytest.raises(CommandFailedError): ctx.cluster.run( - args=["python", "-c", "assert False"], + args=["python3", "-c", "assert False"], ) def test_command_success(self, ctx, config): result = StringIO() ctx.cluster.run( - args=["python", "-c", "print('hi')"], + args=["python3", "-c", "print('hi')"], stdout=result ) assert result.getvalue().strip() == "hi" -- 2.39.5