]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
task.tests: Fix reference to python binary
authorZack Cerza <zack@redhat.com>
Wed, 2 Mar 2022 23:39:13 +0000 (16:39 -0700)
committerZack Cerza <zack@redhat.com>
Fri, 4 Mar 2022 22:00:13 +0000 (15:00 -0700)
It was trying to use `python` as opposed to `python3`.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/tests/test_run.py

index 341a5cde7aae2dff9313d093229f4c12ac2cbd52..f86b0b4f1316634c3218b127a8f7481d60cf80b7 100644 (file)
@@ -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"