potiuk commented on code in PR #32767:
URL: https://github.com/apache/airflow/pull/32767#discussion_r1273979864
##########
tests/cli/commands/test_task_command.py:
##########
@@ -747,13 +749,16 @@ def
test_logging_with_run_task_stdout_k8s_executor_pod(self, is_k8s):
"""
import subprocess
- with mock.patch.dict("os.environ", AIRFLOW_IS_K8S_EXECUTOR_POD=is_k8s):
+ with mock.patch.dict(
+ "os.environ", AIRFLOW_IS_K8S_EXECUTOR_POD=is_k8s,
PYTHONPATH=os.fspath(AIRFLOW_SOURCES_ROOT)
+ ):
with subprocess.Popen(
- args=["airflow", *self.task_args, "-S", self.dag_path],
+ args=[sys.executable, "-m", "airflow", *self.task_args, "-S",
self.dag_path],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
) as process:
output, err = process.communicate()
+ print(output)
Review Comment:
Very much so.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]