(hq_env: HqEnv)
| 841 | |
| 842 | |
| 843 | def test_job_submit_program_not_found(hq_env: HqEnv): |
| 844 | hq_env.start_server() |
| 845 | hq_env.start_worker() |
| 846 | |
| 847 | hq_env.command(["submit", "foo", "--bar", "--baz=5"]) |
| 848 | wait_for_job_state(hq_env, 1, "FAILED") |
| 849 | |
| 850 | table = hq_env.command(["task", "list", "1", "-v"], as_table=True) |
| 851 | assert ( |
| 852 | 'Cannot execute "foo --bar --baz=5": No such file or directory (os error 2)\n' |
| 853 | "The program that you have tried to execute (`foo`) was not found." == table.get_column_value("Error")[0] |
| 854 | ) |
| 855 | |
| 856 | |
| 857 | def test_job_submit_program_not_found_file_exists(hq_env: HqEnv): |
nothing calls this directly
no test coverage detected