diff --git "a/zevv__duc.a58fa4e/zevv__duc.a58fa4e.eval.log.json" "b/zevv__duc.a58fa4e/zevv__duc.a58fa4e.eval.log.json" new file mode 100644--- /dev/null +++ "b/zevv__duc.a58fa4e/zevv__duc.a58fa4e.eval.log.json" @@ -0,0 +1 @@ +{"log": [{"step": "wipe_workspace", "command": "rm -rf /workspace/* /workspace/.[!.]*", "wall_time": 0.14533640211448073, "output": "", "returncode": 0, "exception_info": ""}, {"step": "remove_hashed_files", "command": "find /workspace -type f -exec sha256sum {} + 2>/dev/null | grep -E \"^(b724715fee63228119ea9caeb3f4b436f618d8a8752138a73367063b768d20a2) \" | cut -c67- | xargs -I% rm -fv %", "wall_time": 0.11274957191199064, "output": "", "returncode": 0, "exception_info": ""}, {"step": "clear_stale_executable", "command": "rm -f ./executable", "wall_time": 0.0887285522185266, "output": "", "returncode": 0, "exception_info": ""}, {"step": "seed_git", "command": "if [ ! -d .git ]; then GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' git -c init.defaultBranch=gold init -q && git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; fi", "wall_time": 0.08584010787308216, "output": "", "returncode": 0, "exception_info": ""}, {"step": "compile", "command": "chmod +x ./compile.sh && ./compile.sh", "wall_time": 0.12917622411623597, "output": "", "returncode": 0, "exception_info": ""}, {"step": "copy_executable", "command": "mv ./executable /opt/programbench-stashed-executable-do-not-modify", "wall_time": 0.113555031362921, "output": "", "returncode": 0, "exception_info": ""}, {"step": "hash_executable", "command": "sha256sum /opt/programbench-stashed-executable-do-not-modify", "wall_time": 0.10029350500553846, "output": "7ae9102aba73859306e3c979af8d6d64017de056bdef6117df20f2f7c57fe130 /opt/programbench-stashed-executable-do-not-modify\n", "returncode": 0, "exception_info": ""}, {"step": "install_rerunfailures", "command": "pip3 install -q --disable-pip-version-check pytest-rerunfailures==16.4", "wall_time": 0.7519456008449197, "output": "WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\n", "returncode": 0, "exception_info": ""}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.0940694510936737, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.08741184370592237, "output": "7ae9102aba73859306e3c979af8d6d64017de056bdef6117df20f2f7c57fe130 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.10519554698839784, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.07731261570006609, "output": "", "returncode": 0, "exception_info": ""}, {"step": "install_pytest_timeout_retry", "command": "mkdir -p /tmp/programbench-grader-plugins && rm -f /tmp/programbench-grader-plugins/programbench_pytest_timeout.py", "wall_time": 0.11457127565518022, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PROGRAMBENCH_PYTEST_ORIGINAL_PYTHONPATH=\"${PYTHONPATH-}\" && export PROGRAMBENCH_PYTEST_ORIGINAL_ADDOPTS=\"${PYTEST_ADDOPTS-}\" && export PYTHONPATH=\"/tmp/programbench-grader-plugins${PYTHONPATH:+:$PYTHONPATH}\" && export PYTEST_ADDOPTS=\"${PYTEST_ADDOPTS:-} -p programbench_pytest_timeout --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 49.57105420669541, "output": "============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3\ncachedir: .pytest_cache\nrootdir: /workspace/eval\nplugins: timeout-2.4.0, rerunfailures-16.4, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 5.0s\ntimeout method: signal\ntimeout func_only: False\ncreated: 10/10 workers\n10 workers [898 items]\n\nscheduling tests via LoadScheduling\n\ntests/test_additional_coverage_phase2.py::TestIndexOptions::test_index_with_topn_options \ntests/test_additional_coverage.py::test_histogram_all_options_combined \ntests/test_additional_coverage_phase2.py::TestShortOptions::test_short_form_q \ntests/test_basic_invocation.py::test_global_verbose_flag \ntests/test_command_execution.py::TestFormatOptions::test_graph_with_invalid_format \ntests/test_50_percent.py::TestGraphRingGapVariations::test_graph_ring_gap_0 \ntests/test_additional_coverage_phase2.py::TestUIOptions::test_ui_with_no_color \ntests/test_command_execution.py::TestLsCommandExecution::test_ls_with_nonexistent_database \ntests/test_50_percent.py::TestMoreLsCombinations::test_ls_bytes_apparent_count \ntests/test_additional_coverage_phase2.py::TestGradientOption::test_graph_gradient \n[gw7] [ 0%] PASSED tests/test_basic_invocation.py::test_global_verbose_flag \n[gw5] [ 0%] PASSED tests/test_additional_coverage_phase2.py::TestShortOptions::test_short_form_q \n[gw3] [ 0%] PASSED tests/test_additional_coverage_phase2.py::TestIndexOptions::test_index_with_topn_options \n[gw4] [ 0%] PASSED tests/test_additional_coverage_phase2.py::TestUIOptions::test_ui_with_no_color \n[gw8] [ 0%] PASSED tests/test_command_execution.py::TestLsCommandExecution::test_ls_with_nonexistent_database \ntests/test_additional_coverage_phase2.py::TestShortOptions::test_short_form_v \n[gw6] [ 0%] PASSED tests/test_additional_coverage_phase2.py::TestGradientOption::test_graph_gradient \ntests/test_command_execution.py::TestLsCommandExecution::test_ls_missing_database \ntests/test_additional_coverage_phase2.py::TestGradientOption::test_cgi_gradient \ntests/test_cgi.py::test_cgi_help \ntests/test_additional_coverage_phase2.py::TestIndexOptions::test_index_with_buckets \ntests/test_additional_coverage_phase2.py::TestXMLOptions::test_xml_with_exclude_files \n[gw5] [ 0%] PASSED tests/test_additional_coverage_phase2.py::TestShortOptions::test_short_form_v \ntests/test_additional_coverage_phase2.py::TestShortOptions::test_multiple_short_options \n[gw8] [ 0%] PASSED tests/test_command_execution.py::TestLsCommandExecution::test_ls_missing_database \ntests/test_command_execution.py::TestHistogramCommandExecution::test_histogram_with_nonexistent_database \n[gw4] [ 1%] PASSED tests/test_additional_coverage_phase2.py::TestXMLOptions::test_xml_with_exclude_files \n[gw3] [ 1%] PASSED tests/test_additional_coverage_phase2.py::TestIndexOptions::test_index_with_buckets \n[gw6] [ 1%] PASSED tests/test_additional_coverage_phase2.py::TestGradientOption::test_cgi_gradient \ntests/test_additional_coverage_phase2.py::TestXMLOptions::test_xml_with_min_size \ntests/test_additional_coverage_phase2.py::TestIndexOptions::test_index_uncompressed_option \ntests/test_additional_coverage_phase2.py::TestGradientOption::test_gui_gradient \n[gw7] [ 1%] PASSED tests/test_cgi.py::test_cgi_help \ntests/test_cgi.py::test_cgi_help_shows_all_options \n[gw5] [ 1%] PASSED tests/test_additional_coverage_phase2.py::TestShortOptions::test_multiple_short_options \ntests/test_additional_coverage_phase2.py::TestOptionParsing::test_option_with_equals \n[gw8] [ 1%] PASSED tests/test_command_execution.py::TestHistogramCommandExecution::test_histogram_with_nonexistent_database \ntests/test_command_execution.py::TestXMLCommandExecution::test_xml_with_nonexistent_database \n[gw4] [ 1%] PASSED tests/test_additional_coverage_phase2.py::TestXMLOptions::test_xml_with_min_size \ntests/test_additional_coverage_phase2.py::TestJSONOptions::test_json_with_exclude_files \n[gw6] [ 1%] PASSED tests/test_additional_coverage_phase2.py::TestGradientOption::test_gui_gradient \ntests/test_additional_coverage_phase2.py::TestLevelsOption::test_graph_levels \n[gw3] [ 1%] PASSED tests/test_additional_coverage_phase2.py::TestIndexOptions::test_index_uncompressed_option \n[gw7] [ 2%] PASSED tests/test_cgi.py::test_cgi_help_shows_all_options \ntests/test_additional_coverage_phase2.py::TestGraphOptions::test_graph_with_dpi \ntests/test_cgi_expanded.py::test_cgi_without_cgi_environment \n[gw8] [ 2%] PASSED tests/test_command_execution.py::TestXMLCommandExecution::test_xml_with_nonexistent_database \ntests/test_command_execution.py::TestJSONCommandExecution::test_json_with_nonexistent_database \n[gw5] [ 2%] PASSED tests/test_additional_coverage_phase2.py::TestOptionParsing::test_option_with_equals \ntests/test_additional_coverage_phase2.py::TestOptionParsing::test_option_with_space \n[gw6] [ 2%] PASSED tests/test_additional_coverage_phase2.py::TestLevelsOption::test_graph_levels \n[gw4] [ 2%] PASSED tests/test_additional_coverage_phase2.py::TestJSONOptions::test_json_with_exclude_files \ntests/test_additional_coverage_phase2.py::TestLevelsOption::test_ls_levels \ntests/test_additional_coverage_phase2.py::TestJSONOptions::test_json_with_min_size \n[gw3] [ 2%] PASSED tests/test_additional_coverage_phase2.py::TestGraphOptions::test_graph_with_dpi \ntests/test_additional_coverage_phase2.py::TestGraphOptions::test_graph_with_ring_gap \n[gw9] [ 2%] PASSED tests/test_command_execution.py::TestFormatOptions::test_graph_with_invalid_format \n[gw2] [ 2%] PASSED tests/test_additional_coverage.py::test_histogram_all_options_combined \ntests/test_additional_coverage.py::test_topn_all_options_combined \ntests/test_command_execution.py::TestBase10Histogram::test_histogram_with_base10 \n[gw8] [ 2%] PASSED tests/test_command_execution.py::TestJSONCommandExecution::test_json_with_nonexistent_database \ntests/test_command_execution.py::TestGraphCommandExecution::test_graph_with_nonexistent_database \n[gw5] [ 3%] PASSED tests/test_additional_coverage_phase2.py::TestOptionParsing::test_option_with_space \ntests/test_additional_coverage_phase2.py::TestOptionParsing::test_numeric_option_values \n[gw4] [ 3%] PASSED tests/test_additional_coverage_phase2.py::TestJSONOptions::test_json_with_min_size \ntests/test_additional_coverage_phase2.py::TestInfoOptions::test_info_with_histogram \n[gw6] [ 3%] PASSED tests/test_additional_coverage_phase2.py::TestLevelsOption::test_ls_levels \ntests/test_additional_coverage_phase2.py::TestLevelsOption::test_cgi_levels \n[gw3] [ 3%] PASSED tests/test_additional_coverage_phase2.py::TestGraphOptions::test_graph_with_ring_gap \ntests/test_additional_coverage_phase2.py::TestGraphOptions::test_graph_with_fuzz \n[gw9] [ 3%] PASSED tests/test_command_execution.py::TestBase10Histogram::test_histogram_with_base10 \n[gw2] [ 3%] PASSED tests/test_additional_coverage.py::test_topn_all_options_combined \ntests/test_additional_coverage.py::test_info_all_options_combined \ntests/test_command_execution.py::TestApparentSize::test_ls_with_apparent \n[gw8] [ 3%] PASSED tests/test_command_execution.py::TestGraphCommandExecution::test_graph_with_nonexistent_database \ntests/test_command_execution.py::TestTopnCommandExecution::test_topn_with_nonexistent_database \n[gw5] [ 3%] PASSED tests/test_additional_coverage_phase2.py::TestOptionParsing::test_numeric_option_values \n[gw4] [ 3%] PASSED tests/test_additional_coverage_phase2.py::TestInfoOptions::test_info_with_histogram \ntests/test_additional_coverage_phase2.py::TestOptionParsing::test_string_option_values \ntests/test_additional_coverage_phase2.py::TestApparentSizeFlag::test_info_apparent \n[gw6] [ 4%] PASSED tests/test_additional_coverage_phase2.py::TestLevelsOption::test_cgi_levels \ntests/test_additional_coverage_phase2.py::TestLevelsOption::test_gui_levels \n[gw3] [ 4%] PASSED tests/test_additional_coverage_phase2.py::TestGraphOptions::test_graph_with_fuzz \ntests/test_additional_coverage_phase2.py::TestGraphOptions::test_graph_multiple_options_combined \n[gw2] [ 4%] PASSED tests/test_additional_coverage.py::test_info_all_options_combined \ntests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_command_exists \n[gw9] [ 4%] PASSED tests/test_command_execution.py::TestApparentSize::test_ls_with_apparent \ntests/test_command_execution.py::TestApparentSize::test_json_with_apparent \n[gw8] [ 4%] PASSED tests/test_command_execution.py::TestTopnCommandExecution::test_topn_with_nonexistent_database \ntests/test_command_execution.py::TestCGICommandExecution::test_cgi_without_environment \n[gw5] [ 4%] PASSED tests/test_additional_coverage_phase2.py::TestOptionParsing::test_string_option_values \ntests/test_additional_coverage_phase2.py::TestErrorMessages::test_invalid_command_shows_error \n[gw4] [ 4%] PASSED tests/test_additional_coverage_phase2.py::TestApparentSizeFlag::test_info_apparent \n[gw6] [ 4%] PASSED tests/test_additional_coverage_phase2.py::TestLevelsOption::test_gui_levels \ntests/test_additional_coverage_phase2.py::TestApparentSizeFlag::test_ls_apparent \ntests/test_additional_coverage_phase2.py::TestFormatOption::test_graph_format_png \n[gw3] [ 4%] PASSED tests/test_additional_coverage_phase2.py::TestGraphOptions::test_graph_multiple_options_combined \ntests/test_additional_coverage_phase2.py::TestLsOptions::test_ls_with_classify \n[gw1] [ 5%] PASSED tests/test_50_percent.py::TestGraphRingGapVariations::test_graph_ring_gap_0 \ntests/test_50_percent.py::TestGraphRingGapVariations::test_graph_ring_gap_10 \n[gw9] [ 5%] PASSED tests/test_command_execution.py::TestApparentSize::test_json_with_apparent \ntests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_force_option \n[gw8] [ 5%] PASSED tests/test_command_execution.py::TestCGICommandExecution::test_cgi_without_environment \n[gw4] [ 5%] PASSED tests/test_additional_coverage_phase2.py::TestApparentSizeFlag::test_ls_apparent \ntests/test_command_execution.py::TestUICommandExecution::test_ui_with_nonexistent_database \ntests/test_additional_coverage_phase2.py::TestApparentSizeFlag::test_histogram_apparent \n[gw5] [ 5%] PASSED tests/test_additional_coverage_phase2.py::TestErrorMessages::test_invalid_command_shows_error \ntests/test_additional_coverage_phase2.py::TestErrorMessages::test_missing_database_error \n[gw6] [ 5%] PASSED tests/test_additional_coverage_phase2.py::TestFormatOption::test_graph_format_png \ntests/test_additional_coverage_phase2.py::TestFormatOption::test_graph_format_svg \n[gw3] [ 5%] PASSED tests/test_additional_coverage_phase2.py::TestLsOptions::test_ls_with_classify \ntests/test_additional_coverage_phase2.py::TestLsOptions::test_ls_with_color \n[gw9] [ 5%] PASSED tests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_force_option \ntests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_uncompressed_option \n[gw4] [ 5%] PASSED tests/test_additional_coverage_phase2.py::TestApparentSizeFlag::test_histogram_apparent \ntests/test_additional_coverage_phase2.py::TestApparentSizeFlag::test_json_apparent \n[gw6] [ 6%] PASSED tests/test_additional_coverage_phase2.py::TestFormatOption::test_graph_format_svg \n[gw8] [ 6%] PASSED tests/test_command_execution.py::TestUICommandExecution::test_ui_with_nonexistent_database \n[gw5] [ 6%] PASSED tests/test_additional_coverage_phase2.py::TestErrorMessages::test_missing_database_error \ntests/test_additional_coverage_phase2.py::TestFormatOption::test_graph_format_pdf \ntests/test_command_execution.py::TestGUICommandExecution::test_gui_without_display \ntests/test_additional_coverage_phase2.py::TestExcludePattern::test_exclude_single_path \n[gw3] [ 6%] PASSED tests/test_additional_coverage_phase2.py::TestLsOptions::test_ls_with_color \ntests/test_additional_coverage_phase2.py::TestLsOptions::test_ls_with_graph \n[gw9] [ 6%] PASSED tests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_uncompressed_option \ntests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_buckets_option \n[gw7] [ 6%] PASSED tests/test_cgi_expanded.py::test_cgi_without_cgi_environment \ntests/test_cgi_expanded.py::test_cgi_with_query_string \n[gw5] [ 6%] PASSED tests/test_additional_coverage_phase2.py::TestExcludePattern::test_exclude_single_path \ntests/test_additional_coverage_phase2.py::TestExcludePattern::test_exclude_multiple_paths \n[gw3] [ 6%] PASSED tests/test_additional_coverage_phase2.py::TestLsOptions::test_ls_with_graph \n[gw4] [ 6%] PASSED tests/test_additional_coverage_phase2.py::TestApparentSizeFlag::test_json_apparent \n[gw8] [ 7%] PASSED tests/test_command_execution.py::TestGUICommandExecution::test_gui_without_display \ntests/test_additional_coverage_phase2.py::TestApparentSizeFlag::test_xml_apparent \ntests/test_additional_coverage_phase2.py::TestLsOptions::test_ls_with_levels \ntests/test_command_execution.py::TestDatabaseEnvironmentVariable::test_index_uses_env_database \n[gw6] [ 7%] PASSED tests/test_additional_coverage_phase2.py::TestFormatOption::test_graph_format_pdf \ntests/test_additional_coverage_phase2.py::TestFormatOption::test_graph_format_html \n[gw9] [ 7%] PASSED tests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_buckets_option \ntests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_hide_file_names_option \n[gw5] [ 7%] PASSED tests/test_additional_coverage_phase2.py::TestExcludePattern::test_exclude_multiple_paths \ntests/test_additional_coverage_phase2.py::TestDryRunMode::test_dry_run_option \n[gw3] [ 7%] PASSED tests/test_additional_coverage_phase2.py::TestLsOptions::test_ls_with_levels \n[gw4] [ 7%] PASSED tests/test_additional_coverage_phase2.py::TestApparentSizeFlag::test_xml_apparent \n[gw8] [ 7%] PASSED tests/test_command_execution.py::TestDatabaseEnvironmentVariable::test_index_uses_env_database \n[gw6] [ 7%] PASSED tests/test_additional_coverage_phase2.py::TestFormatOption::test_graph_format_html \ntests/test_additional_coverage_phase2.py::TestLsOptions::test_ls_with_name_sort \ntests/test_command_execution.py::TestDatabaseEnvironmentVariable::test_info_uses_env_database \ntests/test_additional_coverage_phase2.py::TestBase10Option::test_histogram_base10 \ntests/test_additional_coverage_phase2.py::TestApparentSizeFlag::test_graph_apparent \n[gw1] [ 7%] PASSED tests/test_50_percent.py::TestGraphRingGapVariations::test_graph_ring_gap_10 \ntests/test_absolutely_50.py::TestFinal::test_ls_color_various_paths \n[gw9] [ 8%] PASSED tests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_hide_file_names_option \ntests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_fs_exclude_option \n[gw5] [ 8%] PASSED tests/test_additional_coverage_phase2.py::TestDryRunMode::test_dry_run_option \ntests/test_additional_coverage_phase2.py::TestProgressMode::test_progress_option \n[gw3] [ 8%] PASSED tests/test_additional_coverage_phase2.py::TestLsOptions::test_ls_with_name_sort \n[gw8] [ 8%] PASSED tests/test_command_execution.py::TestDatabaseEnvironmentVariable::test_info_uses_env_database \n[gw4] [ 8%] PASSED tests/test_additional_coverage_phase2.py::TestApparentSizeFlag::test_graph_apparent \n[gw6] [ 8%] PASSED tests/test_additional_coverage_phase2.py::TestBase10Option::test_histogram_base10 \ntests/test_command_execution.py::TestVerboseAndDebugOutput::test_verbose_flag_with_error \ntests/test_additional_coverage_phase2.py::TestBytesFlag::test_index_bytes \ntests/test_additional_coverage_phase2.py::TestLsOptions::test_ls_with_count \ntests/test_basic_invocation.py::test_no_args_shows_help \n[gw9] [ 8%] PASSED tests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_fs_exclude_option \ntests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_fs_include_option \n[gw5] [ 8%] PASSED tests/test_additional_coverage_phase2.py::TestProgressMode::test_progress_option \ntests/test_additional_coverage_phase2.py::TestRecursiveOption::test_recursive_option \n[gw4] [ 8%] PASSED tests/test_additional_coverage_phase2.py::TestBytesFlag::test_index_bytes \n[gw3] [ 9%] PASSED tests/test_additional_coverage_phase2.py::TestLsOptions::test_ls_with_count \n[gw6] [ 9%] PASSED tests/test_basic_invocation.py::test_no_args_shows_help \n[gw8] [ 9%] PASSED tests/test_command_execution.py::TestVerboseAndDebugOutput::test_verbose_flag_with_error \ntests/test_additional_coverage_phase2.py::TestLsOptions::test_ls_with_full_path \ntests/test_basic_invocation.py::test_help_flag_shows_help \ntests/test_additional_coverage_phase2.py::TestBytesFlag::test_info_bytes \ntests/test_command_execution.py::TestVerboseAndDebugOutput::test_debug_flag_with_error \n[gw9] [ 9%] PASSED tests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_fs_include_option \ntests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_uid_option \n[gw7] [ 9%] PASSED tests/test_cgi_expanded.py::test_cgi_with_query_string \ntests/test_cgi_expanded.py::test_cgi_with_request_method \n[gw5] [ 9%] PASSED tests/test_additional_coverage_phase2.py::TestRecursiveOption::test_recursive_option \ntests/test_additional_coverage_phase2.py::TestCountOption::test_ls_count \n[gw6] [ 9%] PASSED tests/test_basic_invocation.py::test_help_flag_shows_help \n[gw3] [ 9%] PASSED tests/test_additional_coverage_phase2.py::TestLsOptions::test_ls_with_full_path \n[gw8] [ 9%] PASSED tests/test_command_execution.py::TestVerboseAndDebugOutput::test_debug_flag_with_error \n[gw4] [ 10%] PASSED tests/test_additional_coverage_phase2.py::TestBytesFlag::test_info_bytes \ntests/test_basic_invocation.py::test_help_flag_short \ntests/test_command_execution.py::TestVerboseAndDebugOutput::test_quiet_flag_suppresses_warnings \ntests/test_additional_coverage_phase2.py::TestLsOptions::test_ls_with_ascii \ntests/test_additional_coverage_phase2.py::TestBytesFlag::test_ls_bytes \n[gw9] [ 10%] PASSED tests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_uid_option \ntests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_username_option \n[gw7] [ 10%] PASSED tests/test_cgi_expanded.py::test_cgi_with_request_method \ntests/test_cgi_expanded.py::test_cgi_with_path_info \n[gw5] [ 10%] PASSED tests/test_additional_coverage_phase2.py::TestCountOption::test_ls_count \ntests/test_additional_coverage_phase2.py::TestCountOption::test_graph_count \n[gw6] [ 10%] PASSED tests/test_basic_invocation.py::test_help_flag_short \n[gw3] [ 10%] PASSED tests/test_additional_coverage_phase2.py::TestLsOptions::test_ls_with_ascii \n[gw4] [ 10%] PASSED tests/test_additional_coverage_phase2.py::TestBytesFlag::test_ls_bytes \ntests/test_basic_invocation.py::test_version_flag \ntests/test_additional_coverage_phase2.py::TestLsOptions::test_ls_dirs_only \ntests/test_additional_coverage_phase2.py::TestBytesFlag::test_histogram_bytes \n[gw9] [ 10%] PASSED tests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_username_option \ntests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_topn_option \n[gw7] [ 10%] PASSED tests/test_cgi_expanded.py::test_cgi_with_path_info \ntests/test_cgi_expanded.py::test_cgi_list_option \n[gw5] [ 11%] PASSED tests/test_additional_coverage_phase2.py::TestCountOption::test_graph_count \ntests/test_additional_coverage_phase2.py::TestCountOption::test_cgi_count \n[gw8] [ 11%] PASSED tests/test_command_execution.py::TestVerboseAndDebugOutput::test_quiet_flag_suppresses_warnings \ntests/test_command_execution.py::TestIndexOptionsValidation::test_index_with_exclude_pattern \n[gw3] [ 11%] PASSED tests/test_additional_coverage_phase2.py::TestLsOptions::test_ls_dirs_only \ntests/test_additional_coverage_phase2.py::TestCGIOptions::test_cgi_with_css_url \n[gw4] [ 11%] PASSED tests/test_additional_coverage_phase2.py::TestBytesFlag::test_histogram_bytes \ntests/test_additional_coverage_phase2.py::TestBytesFlag::test_cgi_bytes \n[gw6] [ 11%] PASSED tests/test_basic_invocation.py::test_version_flag \ntests/test_basic_invocation.py::test_help_subcommand \n[gw9] [ 11%] PASSED tests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_topn_option \ntests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_topn_min_option \n[gw7] [ 11%] PASSED tests/test_cgi_expanded.py::test_cgi_list_option \ntests/test_cgi_expanded.py::test_cgi_size_levels_options \n[gw5] [ 11%] PASSED tests/test_additional_coverage_phase2.py::TestCountOption::test_cgi_count \ntests/test_additional_coverage_phase2.py::TestCountOption::test_gui_count \n[gw4] [ 11%] PASSED tests/test_additional_coverage_phase2.py::TestBytesFlag::test_cgi_bytes \ntests/test_additional_coverage_phase2.py::TestBytesFlag::test_gui_bytes \n[gw8] [ 12%] PASSED tests/test_command_execution.py::TestIndexOptionsValidation::test_index_with_exclude_pattern \n[gw3] [ 12%] PASSED tests/test_additional_coverage_phase2.py::TestCGIOptions::test_cgi_with_css_url \ntests/test_additional_coverage_phase2.py::TestCGIOptions::test_cgi_with_header \ntests/test_command_execution.py::TestIndexOptionsValidation::test_index_with_multiple_exclude_patterns \n[gw6] [ 12%] PASSED tests/test_basic_invocation.py::test_help_subcommand \ntests/test_basic_invocation.py::test_help_all_flag \n[gw9] [ 12%] PASSED tests/test_comprehensive_new.py::TestIndexCommandOptions::test_index_topn_min_option \ntests/test_comprehensive_new.py::TestLsCommandOptions::test_ls_classify_option \n[gw7] [ 12%] PASSED tests/test_cgi_expanded.py::test_cgi_size_levels_options \ntests/test_cgi_expanded.py::test_cgi_gradient_palette_options \n[gw5] [ 12%] PASSED tests/test_additional_coverage_phase2.py::TestCountOption::test_gui_count \ntests/test_additional_coverage_phase2.py::TestCountOption::test_ui_count \n[gw8] [ 12%] PASSED tests/test_command_execution.py::TestIndexOptionsValidation::test_index_with_multiple_exclude_patterns \n[gw6] [ 12%] PASSED tests/test_basic_invocation.py::test_help_all_flag \n[gw4] [ 12%] PASSED tests/test_additional_coverage_phase2.py::TestBytesFlag::test_gui_bytes \n[gw3] [ 13%] PASSED tests/test_additional_coverage_phase2.py::TestCGIOptions::test_cgi_with_header \ntests/test_basic_invocation.py::test_help_specific_subcommand \ntests/test_command_execution.py::TestCommandWithEmptyArguments::test_index_with_empty_database \ntests/test_additional_coverage_phase2.py::TestCGIOptions::test_cgi_with_footer \ntests/test_additional_coverage_phase2.py::TestBytesFlag::test_ui_bytes \n[gw9] [ 13%] PASSED tests/test_comprehensive_new.py::TestLsCommandOptions::test_ls_classify_option \ntests/test_comprehensive_new.py::TestLsCommandOptions::test_ls_color_option \n[gw0] [ 13%] RERUN tests/test_50_percent.py::TestMoreLsCombinations::test_ls_bytes_apparent_count \ntests/test_50_percent.py::TestMoreLsCombinations::test_ls_bytes_apparent_count \n[gw7] [ 13%] PASSED tests/test_cgi_expanded.py::test_cgi_gradient_palette_options \ntests/test_cgi_expanded.py::test_cgi_tooltip_option \n[gw5] [ 13%] PASSED tests/test_additional_coverage_phase2.py::TestCountOption::test_ui_count \ntests/test_additional_coverage_phase2.py::TestPaletteOption::test_graph_palette \n[gw6] [ 13%] PASSED tests/test_basic_invocation.py::test_help_specific_subcommand \n[gw8] [ 13%] PASSED tests/test_command_execution.py::TestCommandWithEmptyArguments::test_index_with_empty_database \n[gw4] [ 13%] PASSED tests/test_additional_coverage_phase2.py::TestBytesFlag::test_ui_bytes \n[gw3] [ 13%] PASSED tests/test_additional_coverage_phase2.py::TestCGIOptions::test_cgi_with_footer \ntests/test_additional_coverage_phase2.py::TestCGIOptions::test_cgi_with_tooltip \ntests/test_command_execution.py::TestOutputOptions::test_graph_with_output_file \ntests/test_basic_invocation.py::test_invalid_command \ntests/test_additional_coverage_phase2.py::TestDatabaseFlag::test_database_with_value \n[gw9] [ 14%] PASSED tests/test_comprehensive_new.py::TestLsCommandOptions::test_ls_color_option \ntests/test_comprehensive_new.py::TestLsCommandOptions::test_ls_graph_option \n[gw7] [ 14%] PASSED tests/test_cgi_expanded.py::test_cgi_tooltip_option \ntests/test_cgi_expanded.py::test_cgi_bytes_apparent_options \n[gw5] [ 14%] PASSED tests/test_additional_coverage_phase2.py::TestPaletteOption::test_graph_palette \ntests/test_additional_coverage_phase2.py::TestPaletteOption::test_cgi_palette \n[gw8] [ 14%] PASSED tests/test_command_execution.py::TestOutputOptions::test_graph_with_output_file \n[gw6] [ 14%] PASSED tests/test_basic_invocation.py::test_invalid_command \n[gw3] [ 14%] PASSED tests/test_additional_coverage_phase2.py::TestCGIOptions::test_cgi_with_tooltip \ntests/test_command_execution.py::TestOutputOptions::test_graph_without_output_file \ntests/test_basic_invocation.py::test_global_debug_flag \ntests/test_additional_coverage_phase2.py::TestCGIOptions::test_cgi_with_list \n[gw4] [ 14%] PASSED tests/test_additional_coverage_phase2.py::TestDatabaseFlag::test_database_with_value \ntests/test_additional_coverage_phase2.py::TestDatabaseFlag::test_database_short_form \n[gw9] [ 14%] PASSED tests/test_comprehensive_new.py::TestLsCommandOptions::test_ls_graph_option \ntests/test_comprehensive_new.py::TestLsCommandOptions::test_ls_recursive_option \n[gw7] [ 14%] PASSED tests/test_cgi_expanded.py::test_cgi_bytes_apparent_options \ntests/test_cgi_expanded.py::test_cgi_count_option \n[gw5] [ 15%] PASSED tests/test_additional_coverage_phase2.py::TestPaletteOption::test_cgi_palette \ntests/test_additional_coverage_phase2.py::TestPaletteOption::test_gui_palette \n[gw6] [ 15%] PASSED tests/test_basic_invocation.py::test_global_debug_flag \n[gw8] [ 15%] PASSED tests/test_command_execution.py::TestOutputOptions::test_graph_without_output_file \ntests/test_basic_invocation.py::test_global_quiet_flag \n[gw3] [ 15%] PASSED tests/test_additional_coverage_phase2.py::TestCGIOptions::test_cgi_with_list \n[gw4] [ 15%] PASSED tests/test_additional_coverage_phase2.py::TestDatabaseFlag::test_database_short_form \ntests/test_command_execution.py::TestXDGCacheHome::test_info_with_xdg_cache_home \ntests/test_additional_coverage_phase2.py::TestGUIOptions::test_gui_with_dark \ntests/test_additional_coverage_phase2.py::TestShortOptions::test_short_form_h \n[gw9] [ 15%] PASSED tests/test_comprehensive_new.py::TestLsCommandOptions::test_ls_recursive_option \ntests/test_comprehensive_new.py::TestLsCommandOptions::test_ls_name_sort_option \n[gw2] [ 15%] RERUN tests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_command_exists \ntests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_command_exists \n[gw7] [ 15%] PASSED tests/test_cgi_expanded.py::test_cgi_count_option \ntests/test_cgi_expanded.py::test_cgi_css_url_option \n[gw5] [ 15%] PASSED tests/test_additional_coverage_phase2.py::TestPaletteOption::test_gui_palette \ntests/test_comprehensive_new.py::TestErrorMessages::test_histogram_missing_database \n[gw6] [ 16%] PASSED tests/test_basic_invocation.py::test_global_quiet_flag \ntests/test_coverage_boost.py::TestCgiCommandOptions::test_cgi_with_tooltip_option \n[gw4] [ 16%] PASSED tests/test_additional_coverage_phase2.py::TestShortOptions::test_short_form_h \n[gw3] [ 16%] PASSED tests/test_additional_coverage_phase2.py::TestGUIOptions::test_gui_with_dark \ntests/test_coverage_boost.py::TestInfoCommandOptions::test_info_histogram_option \ntests/test_config.py::test_global_options_before_subcommand \n[gw9] [ 16%] PASSED tests/test_comprehensive_new.py::TestLsCommandOptions::test_ls_name_sort_option \ntests/test_comprehensive_new.py::TestLsCommandOptions::test_ls_directory_option \n[gw5] [ 16%] PASSED tests/test_comprehensive_new.py::TestErrorMessages::test_histogram_missing_database \ntests/test_comprehensive_new.py::TestErrorMessages::test_topn_missing_database \n[gw6] [ 16%] PASSED tests/test_coverage_boost.py::TestCgiCommandOptions::test_cgi_with_tooltip_option \n[gw3] [ 16%] PASSED tests/test_coverage_boost.py::TestInfoCommandOptions::test_info_histogram_option \ntests/test_coverage_boost.py::TestCgiCommandOptions::test_cgi_with_list_option \ntests/test_coverage_boost.py::TestInfoCommandOptions::test_info_apparent_option \n[gw7] [ 16%] PASSED tests/test_cgi_expanded.py::test_cgi_css_url_option \ntests/test_cgi_expanded.py::test_cgi_header_footer_options \n[gw8] [ 16%] PASSED tests/test_command_execution.py::TestXDGCacheHome::test_info_with_xdg_cache_home \ntests/test_command_execution.py::TestLsOptionsWithDatabase::test_ls_with_recursive_and_levels \n[gw9] [ 17%] PASSED tests/test_comprehensive_new.py::TestLsCommandOptions::test_ls_directory_option \ntests/test_comprehensive_new.py::TestLsCommandOptions::test_ls_dirs_only_option \n[gw4] [ 17%] PASSED tests/test_config.py::test_global_options_before_subcommand \ntests/test_config.py::test_subcommand_specific_help \n[gw3] [ 17%] PASSED tests/test_coverage_boost.py::TestInfoCommandOptions::test_info_apparent_option \ntests/test_coverage_boost.py::TestErrorMessageContent::test_invalid_subcommand_shows_help \n[gw5] [ 17%] PASSED tests/test_comprehensive_new.py::TestErrorMessages::test_topn_missing_database \ntests/test_comprehensive_new.py::TestErrorMessages::test_json_missing_database \n[gw6] [ 17%] PASSED tests/test_coverage_boost.py::TestCgiCommandOptions::test_cgi_with_list_option \ntests/test_coverage_boost.py::TestXmlJsonOutputOptions::test_xml_with_min_size_option \n[gw7] [ 17%] PASSED tests/test_cgi_expanded.py::test_cgi_header_footer_options \ntests/test_cgi_expanded.py::test_cgi_dpi_fuzz_ringgap_options \n[gw8] [ 17%] PASSED tests/test_command_execution.py::TestLsOptionsWithDatabase::test_ls_with_recursive_and_levels \ntests/test_comprehensive_new.py::TestLsCommandOptions::test_ls_full_path_option \n[gw9] [ 17%] PASSED tests/test_comprehensive_new.py::TestLsCommandOptions::test_ls_dirs_only_option \ntests/test_comprehensive_new.py::TestLsCommandOptions::test_ls_count_option \n[gw3] [ 17%] PASSED tests/test_coverage_boost.py::TestErrorMessageContent::test_invalid_subcommand_shows_help \ntests/test_coverage_boost.py::TestErrorMessageContent::test_missing_database_error_is_clear \n[gw5] [ 18%] PASSED tests/test_comprehensive_new.py::TestErrorMessages::test_json_missing_database \ntests/test_comprehensive_new.py::TestErrorMessages::test_xml_missing_database \n[gw6] [ 18%] PASSED tests/test_coverage_boost.py::TestXmlJsonOutputOptions::test_xml_with_min_size_option \ntests/test_coverage_boost.py::TestXmlJsonOutputOptions::test_json_with_min_size_option \n[gw7] [ 18%] PASSED tests/test_cgi_expanded.py::test_cgi_dpi_fuzz_ringgap_options \ntests/test_command_execution.py::TestIndexCommandExecution::test_index_missing_path_argument \n[gw8] [ 18%] PASSED tests/test_comprehensive_new.py::TestLsCommandOptions::test_ls_full_path_option \ntests/test_comprehensive_new.py::TestGraphCommandOptions::test_graph_format_option \n[gw9] [ 18%] PASSED tests/test_comprehensive_new.py::TestLsCommandOptions::test_ls_count_option \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_bytes_flag \n[gw3] [ 18%] PASSED tests/test_coverage_boost.py::TestErrorMessageContent::test_missing_database_error_is_clear \ntests/test_coverage_boost.py::TestErrorMessageContent::test_help_after_error \n[gw5] [ 18%] PASSED tests/test_comprehensive_new.py::TestErrorMessages::test_xml_missing_database \n[gw6] [ 18%] PASSED tests/test_coverage_boost.py::TestXmlJsonOutputOptions::test_json_with_min_size_option \ntests/test_comprehensive_new.py::TestErrorMessages::test_graph_missing_database \ntests/test_coverage_boost.py::TestXmlJsonOutputOptions::test_xml_with_exclude_files_option \n[gw7] [ 18%] PASSED tests/test_command_execution.py::TestIndexCommandExecution::test_index_missing_path_argument \ntests/test_command_execution.py::TestIndexCommandExecution::test_index_with_nonexistent_path \n[gw8] [ 19%] PASSED tests/test_comprehensive_new.py::TestGraphCommandOptions::test_graph_format_option \ntests/test_comprehensive_new.py::TestGraphCommandOptions::test_graph_size_option \n[gw1] [ 19%] RERUN tests/test_absolutely_50.py::TestFinal::test_ls_color_various_paths \ntests/test_absolutely_50.py::TestFinal::test_ls_color_various_paths \n[gw3] [ 19%] PASSED tests/test_coverage_boost.py::TestErrorMessageContent::test_help_after_error \ntests/test_coverage_boost.py::TestVersionInformation::test_version_shows_duc_name \n[gw6] [ 19%] PASSED tests/test_coverage_boost.py::TestXmlJsonOutputOptions::test_xml_with_exclude_files_option \ntests/test_coverage_boost.py::TestXmlJsonOutputOptions::test_json_with_exclude_files_option \n[gw5] [ 19%] PASSED tests/test_comprehensive_new.py::TestErrorMessages::test_graph_missing_database \ntests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_index \n[gw7] [ 19%] PASSED tests/test_command_execution.py::TestIndexCommandExecution::test_index_with_nonexistent_path \n[gw8] [ 19%] PASSED tests/test_comprehensive_new.py::TestGraphCommandOptions::test_graph_size_option \ntests/test_command_execution.py::TestIndexCommandExecution::test_index_with_too_many_topn \ntests/test_comprehensive_new.py::TestGraphCommandOptions::test_graph_levels_option \n[gw3] [ 19%] PASSED tests/test_coverage_boost.py::TestVersionInformation::test_version_shows_duc_name \n[gw6] [ 19%] PASSED tests/test_coverage_boost.py::TestXmlJsonOutputOptions::test_json_with_exclude_files_option \ntests/test_coverage_boost.py::TestVersionInformation::test_version_shows_version_number \ntests/test_coverage_boost.py::TestLsCommandOutputOptions::test_ls_classify_option_help \n[gw5] [ 20%] PASSED tests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_index \ntests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_ls \n[gw8] [ 20%] PASSED tests/test_comprehensive_new.py::TestGraphCommandOptions::test_graph_levels_option \n[gw7] [ 20%] PASSED tests/test_command_execution.py::TestIndexCommandExecution::test_index_with_too_many_topn \ntests/test_comprehensive_new.py::TestGraphCommandOptions::test_graph_gradient_option \ntests/test_command_execution.py::TestIndexCommandExecution::test_index_with_too_many_buckets \n[gw6] [ 20%] PASSED tests/test_coverage_boost.py::TestLsCommandOutputOptions::test_ls_classify_option_help \n[gw3] [ 20%] PASSED tests/test_coverage_boost.py::TestVersionInformation::test_version_shows_version_number \ntests/test_coverage_boost.py::TestVersionInformation::test_version_with_verbose \ntests/test_coverage_boost.py::TestLsCommandOutputOptions::test_ls_ascii_option_help \n[gw5] [ 20%] PASSED tests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_ls \ntests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_info \n[gw8] [ 20%] PASSED tests/test_comprehensive_new.py::TestGraphCommandOptions::test_graph_gradient_option \ntests/test_comprehensive_new.py::TestGraphCommandOptions::test_graph_palette_option \n[gw7] [ 20%] PASSED tests/test_command_execution.py::TestIndexCommandExecution::test_index_with_too_many_buckets \ntests/test_command_execution.py::TestInfoCommandExecution::test_info_with_nonexistent_database \n[gw3] [ 20%] PASSED tests/test_coverage_boost.py::TestVersionInformation::test_version_with_verbose \ntests/test_coverage_boost.py::TestHelpSystemCompleteness::test_help_all_shows_more_than_basic_help \n[gw5] [ 21%] PASSED tests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_info \n[gw6] [ 21%] PASSED tests/test_coverage_boost.py::TestLsCommandOutputOptions::test_ls_ascii_option_help \ntests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_histogram \ntests/test_coverage_boost.py::TestLsCommandOutputOptions::test_ls_graph_option_help \n[gw8] [ 21%] PASSED tests/test_comprehensive_new.py::TestGraphCommandOptions::test_graph_palette_option \ntests/test_comprehensive_new.py::TestGraphCommandOptions::test_graph_fuzz_option \n[gw7] [ 21%] PASSED tests/test_command_execution.py::TestInfoCommandExecution::test_info_with_nonexistent_database \ntests/test_command_execution.py::TestInfoCommandExecution::test_info_with_directory_as_database \n[gw6] [ 21%] PASSED tests/test_coverage_boost.py::TestLsCommandOutputOptions::test_ls_graph_option_help \n[gw5] [ 21%] PASSED tests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_histogram \ntests/test_coverage_boost.py::TestLsCommandOutputOptions::test_ls_levels_option_help \ntests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_topn \n[gw8] [ 21%] PASSED tests/test_comprehensive_new.py::TestGraphCommandOptions::test_graph_fuzz_option \ntests/test_comprehensive_new.py::TestGraphCommandOptions::test_graph_dpi_option \n[gw7] [ 21%] PASSED tests/test_command_execution.py::TestInfoCommandExecution::test_info_with_directory_as_database \ntests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_short_form_no_space \n[gw6] [ 21%] PASSED tests/test_coverage_boost.py::TestLsCommandOutputOptions::test_ls_levels_option_help \n[gw5] [ 22%] PASSED tests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_topn \ntests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_json \ntests/test_coverage_boost.py::TestHistogramCommandOptions::test_histogram_base10_option \n[gw3] [ 22%] PASSED tests/test_coverage_boost.py::TestHelpSystemCompleteness::test_help_all_shows_more_than_basic_help \ntests/test_coverage_boost.py::TestHelpSystemCompleteness::test_help_for_each_subcommand \n[gw8] [ 22%] PASSED tests/test_comprehensive_new.py::TestGraphCommandOptions::test_graph_dpi_option \ntests/test_comprehensive_new.py::TestGraphCommandOptions::test_graph_ring_gap_option \n[gw6] [ 22%] PASSED tests/test_coverage_boost.py::TestHistogramCommandOptions::test_histogram_base10_option \ntests/test_coverage_boost.py::TestHistogramCommandOptions::test_histogram_apparent_option \n[gw5] [ 22%] PASSED tests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_json \ntests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_xml \n[gw8] [ 22%] PASSED tests/test_comprehensive_new.py::TestGraphCommandOptions::test_graph_ring_gap_option \ntests/test_comprehensive_new.py::TestCgiCommandOptions::test_cgi_css_url_option \n[gw0] [ 22%] RERUN tests/test_50_percent.py::TestMoreLsCombinations::test_ls_bytes_apparent_count \ntests/test_50_percent.py::TestMoreLsCombinations::test_ls_bytes_apparent_count \n[gw6] [ 22%] PASSED tests/test_coverage_boost.py::TestHistogramCommandOptions::test_histogram_apparent_option \n[gw5] [ 22%] PASSED tests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_xml \ntests/test_coverage_boost.py::TestUiCommandOptions::test_ui_name_sort_option \ntests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_graph \n[gw8] [ 22%] PASSED tests/test_comprehensive_new.py::TestCgiCommandOptions::test_cgi_css_url_option \ntests/test_comprehensive_new.py::TestCgiCommandOptions::test_cgi_footer_option \n[gw0] [ 22%] FAILED tests/test_50_percent.py::TestMoreLsCombinations::test_ls_bytes_apparent_count \ntests/test_50_percent.py::TestMoreLsCombinations::test_ls_classify_graph_ascii \n[gw4] [ 23%] PASSED tests/test_config.py::test_subcommand_specific_help \ntests/test_coverage_boost.py::TestManualCommand::test_manual_command_generates_markdown \n[gw6] [ 23%] PASSED tests/test_coverage_boost.py::TestUiCommandOptions::test_ui_name_sort_option \n[gw5] [ 23%] PASSED tests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_graph \ntests/test_coverage_boost.py::TestUiCommandOptions::test_ui_no_color_option \ntests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_cgi \n[gw8] [ 23%] PASSED tests/test_comprehensive_new.py::TestCgiCommandOptions::test_cgi_footer_option \ntests/test_comprehensive_new.py::TestCgiCommandOptions::test_cgi_header_option \n[gw5] [ 23%] PASSED tests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_cgi \ntests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_gui \n[gw6] [ 23%] PASSED tests/test_coverage_boost.py::TestUiCommandOptions::test_ui_no_color_option \ntests/test_coverage_boost.py::TestGuiCommandOptions::test_gui_dark_option \n[gw8] [ 23%] PASSED tests/test_comprehensive_new.py::TestCgiCommandOptions::test_cgi_header_option \n[gw2] [ 23%] RERUN tests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_command_exists \ntests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_command_exists \ntests/test_comprehensive_new.py::TestCgiCommandOptions::test_cgi_tooltip_option \n[gw5] [ 23%] PASSED tests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_gui \ntests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_ui \n[gw6] [ 23%] PASSED tests/test_coverage_boost.py::TestGuiCommandOptions::test_gui_dark_option \ntests/test_coverage_boost.py::TestGuiCommandOptions::test_gui_gradient_option \n[gw8] [ 24%] PASSED tests/test_comprehensive_new.py::TestCgiCommandOptions::test_cgi_tooltip_option \ntests/test_comprehensive_new.py::TestCgiCommandOptions::test_cgi_list_option \n[gw2] [ 24%] FAILED tests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_command_exists \ntests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_all_subcommands \n[gw5] [ 24%] PASSED tests/test_comprehensive_new.py::TestHelpForAllSubcommands::test_help_ui \ntests/test_config.py::test_database_env_variable \n[gw6] [ 24%] PASSED tests/test_coverage_boost.py::TestGuiCommandOptions::test_gui_gradient_option \n[gw8] [ 24%] PASSED tests/test_comprehensive_new.py::TestCgiCommandOptions::test_cgi_list_option \ntests/test_comprehensive_new.py::TestUiCommandOptions::test_ui_no_color_option \ntests/test_coverage_boost.py::TestTopnCommandOptions::test_topn_bytes_option \n[gw5] [ 24%] PASSED tests/test_config.py::test_database_env_variable \ntests/test_config.py::test_config_file_ducrc \n[gw8] [ 24%] PASSED tests/test_comprehensive_new.py::TestUiCommandOptions::test_ui_no_color_option \n[gw6] [ 24%] PASSED tests/test_coverage_boost.py::TestTopnCommandOptions::test_topn_bytes_option \ntests/test_coverage_targeted.py::TestConfigFileHandling::test_config_file_in_home \ntests/test_comprehensive_new.py::TestGuiCommandOptions::test_gui_dark_option \n[gw5] [ 24%] PASSED tests/test_config.py::test_config_file_ducrc \ntests/test_coverage_targeted.py::TestGraphOptions::test_graph_count_option \n[gw9] [ 24%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_bytes_flag \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_bytes_flag \n[gw8] [ 25%] PASSED tests/test_comprehensive_new.py::TestGuiCommandOptions::test_gui_dark_option \n[gw6] [ 25%] PASSED tests/test_coverage_targeted.py::TestConfigFileHandling::test_config_file_in_home \ntests/test_comprehensive_new.py::TestErrorMessages::test_ls_missing_database \ntests/test_coverage_targeted.py::TestConfigFileHandling::test_config_file_in_xdg \n[gw5] [ 25%] PASSED tests/test_coverage_targeted.py::TestGraphOptions::test_graph_count_option \ntests/test_coverage_targeted.py::TestIndexOptions::test_index_progress_option \n[gw6] [ 25%] PASSED tests/test_coverage_targeted.py::TestConfigFileHandling::test_config_file_in_xdg \ntests/test_coverage_targeted.py::TestConfigFileHandling::test_config_file_with_subcommand_section \n[gw1] [ 25%] RERUN tests/test_absolutely_50.py::TestFinal::test_ls_color_various_paths \ntests/test_absolutely_50.py::TestFinal::test_ls_color_various_paths \n[gw8] [ 25%] PASSED tests/test_comprehensive_new.py::TestErrorMessages::test_ls_missing_database \ntests/test_comprehensive_new.py::TestErrorMessages::test_info_missing_database \n[gw5] [ 25%] PASSED tests/test_coverage_targeted.py::TestIndexOptions::test_index_progress_option \ntests/test_coverage_targeted.py::TestIndexOptions::test_index_one_file_system_option \n[gw6] [ 25%] PASSED tests/test_coverage_targeted.py::TestConfigFileHandling::test_config_file_with_subcommand_section \ntests/test_coverage_targeted.py::TestConfigFileHandling::test_config_file_with_invalid_section \n[gw1] [ 25%] FAILED tests/test_absolutely_50.py::TestFinal::test_ls_color_various_paths \ntests/test_absolutely_50.py::TestFinal::test_graph_stdout_svg_format \n[gw8] [ 25%] PASSED tests/test_comprehensive_new.py::TestErrorMessages::test_info_missing_database \ntests/test_coverage_targeted.py::TestGuiOptions::test_gui_apparent_option \n[gw5] [ 25%] PASSED tests/test_coverage_targeted.py::TestIndexOptions::test_index_one_file_system_option \ntests/test_coverage_targeted.py::TestIndexOptions::test_index_check_hard_links_option \n[gw1] [ 26%] PASSED tests/test_absolutely_50.py::TestFinal::test_graph_stdout_svg_format \n[gw6] [ 26%] PASSED tests/test_coverage_targeted.py::TestConfigFileHandling::test_config_file_with_invalid_section \ntests/test_absolutely_50.py::TestFinal::test_xml_nested_deep_paths \ntests/test_coverage_targeted.py::TestConfigFileHandling::test_config_file_empty \n[gw8] [ 26%] PASSED tests/test_coverage_targeted.py::TestGuiOptions::test_gui_apparent_option \ntests/test_coverage_targeted.py::TestGuiOptions::test_gui_count_option \n[gw5] [ 26%] PASSED tests/test_coverage_targeted.py::TestIndexOptions::test_index_check_hard_links_option \ntests/test_coverage_targeted.py::TestIndexOptions::test_index_dry_run_option \n[gw3] [ 26%] PASSED tests/test_coverage_boost.py::TestHelpSystemCompleteness::test_help_for_each_subcommand \ntests/test_coverage_boost.py::TestIndexCommandEdgeCases::test_index_nonexistent_path_error \n[gw6] [ 26%] PASSED tests/test_coverage_targeted.py::TestConfigFileHandling::test_config_file_empty \ntests/test_coverage_targeted.py::TestConfigFileHandling::test_config_file_with_comments \n[gw8] [ 26%] PASSED tests/test_coverage_targeted.py::TestGuiOptions::test_gui_count_option \ntests/test_coverage_targeted.py::TestGuiOptions::test_gui_gradient_option \n[gw5] [ 26%] PASSED tests/test_coverage_targeted.py::TestIndexOptions::test_index_dry_run_option \ntests/test_coverage_targeted.py::TestLsOptions::test_ls_levels_option \n[gw3] [ 26%] PASSED tests/test_coverage_boost.py::TestIndexCommandEdgeCases::test_index_nonexistent_path_error \ntests/test_coverage_boost.py::TestIndexCommandEdgeCases::test_index_missing_path_argument \n[gw6] [ 27%] PASSED tests/test_coverage_targeted.py::TestConfigFileHandling::test_config_file_with_comments \ntests/test_coverage_targeted.py::TestDatabaseEnvironmentVariable::test_duc_database_env_var \n[gw8] [ 27%] PASSED tests/test_coverage_targeted.py::TestGuiOptions::test_gui_gradient_option \n[gw3] [ 27%] PASSED tests/test_coverage_boost.py::TestIndexCommandEdgeCases::test_index_missing_path_argument \n[gw5] [ 27%] PASSED tests/test_coverage_targeted.py::TestLsOptions::test_ls_levels_option \ntests/test_coverage_targeted.py::TestLsOptions::test_ls_ascii_option \ntests/test_coverage_targeted.py::TestGuiOptions::test_gui_levels_option \ntests/test_coverage_boost.py::TestConfigFileLoading::test_ducrc_environment_variable \n[gw7] [ 27%] RERUN tests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_short_form_no_space \ntests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_short_form_no_space \n[gw6] [ 27%] PASSED tests/test_coverage_targeted.py::TestDatabaseEnvironmentVariable::test_duc_database_env_var \ntests/test_coverage_targeted.py::TestDatabaseEnvironmentVariable::test_database_option_overrides_env_var \n[gw5] [ 27%] PASSED tests/test_coverage_targeted.py::TestLsOptions::test_ls_ascii_option \n[gw8] [ 27%] PASSED tests/test_coverage_targeted.py::TestGuiOptions::test_gui_levels_option \n[gw3] [ 27%] PASSED tests/test_coverage_boost.py::TestConfigFileLoading::test_ducrc_environment_variable \ntests/test_coverage_boost.py::TestConfigFileLoading::test_home_environment_variable \ntests/test_coverage_targeted.py::TestGuiOptions::test_gui_palette_option \ntests/test_coverage_targeted.py::TestInfoOptions::test_info_histogram_option \n[gw6] [ 28%] PASSED tests/test_coverage_targeted.py::TestDatabaseEnvironmentVariable::test_database_option_overrides_env_var \ntests/test_coverage_targeted.py::TestBytesFormatting::test_histogram_base10_option \n[gw5] [ 28%] PASSED tests/test_coverage_targeted.py::TestInfoOptions::test_info_histogram_option \ntests/test_coverage_targeted.py::TestCgiOptions::test_cgi_size_option \n[gw8] [ 28%] PASSED tests/test_coverage_targeted.py::TestGuiOptions::test_gui_palette_option \ntests/test_coverage_targeted.py::TestGuiOptions::test_gui_fuzz_option \n[gw3] [ 28%] PASSED tests/test_coverage_boost.py::TestConfigFileLoading::test_home_environment_variable \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_force_flag \n[gw6] [ 28%] PASSED tests/test_coverage_targeted.py::TestBytesFormatting::test_histogram_base10_option \ntests/test_coverage_targeted.py::TestBytesFormatting::test_apparent_size_option \n[gw5] [ 28%] PASSED tests/test_coverage_targeted.py::TestCgiOptions::test_cgi_size_option \n[gw8] [ 28%] PASSED tests/test_coverage_targeted.py::TestGuiOptions::test_gui_fuzz_option \ntests/test_coverage_targeted.py::TestCgiOptions::test_cgi_levels_option \ntests/test_coverage_targeted.py::TestGuiOptions::test_gui_ring_gap_option \n[gw0] [ 28%] RERUN tests/test_50_percent.py::TestMoreLsCombinations::test_ls_classify_graph_ascii \ntests/test_50_percent.py::TestMoreLsCombinations::test_ls_classify_graph_ascii \n[gw6] [ 28%] PASSED tests/test_coverage_targeted.py::TestBytesFormatting::test_apparent_size_option \ntests/test_coverage_targeted.py::TestOutputOptions::test_json_exclude_files_option \n[gw8] [ 29%] PASSED tests/test_coverage_targeted.py::TestGuiOptions::test_gui_ring_gap_option \n[gw5] [ 29%] PASSED tests/test_coverage_targeted.py::TestCgiOptions::test_cgi_levels_option \ntests/test_coverage_targeted.py::TestUiOptions::test_ui_bytes_option \n[gw4] [ 29%] RERUN tests/test_coverage_boost.py::TestManualCommand::test_manual_command_generates_markdown \ntests/test_coverage_targeted.py::TestCgiOptions::test_cgi_dpi_option \ntests/test_coverage_boost.py::TestManualCommand::test_manual_command_generates_markdown \n[gw6] [ 29%] PASSED tests/test_coverage_targeted.py::TestOutputOptions::test_json_exclude_files_option \ntests/test_coverage_targeted.py::TestOutputOptions::test_json_min_size_option \n[gw8] [ 29%] PASSED tests/test_coverage_targeted.py::TestUiOptions::test_ui_bytes_option \ntests/test_coverage_targeted.py::TestUiOptions::test_ui_apparent_option \n[gw5] [ 29%] PASSED tests/test_coverage_targeted.py::TestCgiOptions::test_cgi_dpi_option \ntests/test_coverage_targeted.py::TestCgiOptions::test_cgi_fuzz_option \n[gw6] [ 29%] PASSED tests/test_coverage_targeted.py::TestOutputOptions::test_json_min_size_option \ntests/test_coverage_targeted.py::TestOutputOptions::test_xml_exclude_files_option \n[gw8] [ 29%] PASSED tests/test_coverage_targeted.py::TestUiOptions::test_ui_apparent_option \ntests/test_coverage_targeted.py::TestUiOptions::test_ui_count_option \n[gw5] [ 29%] PASSED tests/test_coverage_targeted.py::TestCgiOptions::test_cgi_fuzz_option \ntests/test_coverage_targeted.py::TestCgiOptions::test_cgi_ring_gap_option \n[gw6] [ 30%] PASSED tests/test_coverage_targeted.py::TestOutputOptions::test_xml_exclude_files_option \n[gw2] [ 30%] RERUN tests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_all_subcommands \ntests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_all_subcommands \ntests/test_coverage_targeted.py::TestOutputOptions::test_xml_min_size_option \n[gw8] [ 30%] PASSED tests/test_coverage_targeted.py::TestUiOptions::test_ui_count_option \n[gw5] [ 30%] PASSED tests/test_coverage_targeted.py::TestCgiOptions::test_cgi_ring_gap_option \ntests/test_coverage_targeted.py::TestUiOptions::test_ui_name_sort_option \ntests/test_coverage_targeted.py::TestGuiOptions::test_gui_bytes_option \n[gw6] [ 30%] PASSED tests/test_coverage_targeted.py::TestOutputOptions::test_xml_min_size_option \ntests/test_coverage_targeted.py::TestGraphOptions::test_graph_output_option \n[gw5] [ 30%] PASSED tests/test_coverage_targeted.py::TestGuiOptions::test_gui_bytes_option \ntests/test_database_error_handling.py::TestDatabaseCorruptionDetection::test_ls_with_invalid_database_format \n[gw8] [ 30%] PASSED tests/test_coverage_targeted.py::TestUiOptions::test_ui_name_sort_option \ntests/test_coverage_targeted.py::TestVersionOutput::test_version_shows_backend \n[gw6] [ 30%] PASSED tests/test_coverage_targeted.py::TestGraphOptions::test_graph_output_option \ntests/test_database_error_handling.py::TestMultipleCommandsDifferentDatabases::test_multiple_commands_with_different_invalid_databases \n[gw5] [ 30%] PASSED tests/test_database_error_handling.py::TestDatabaseCorruptionDetection::test_ls_with_invalid_database_format \ntests/test_database_error_handling.py::TestDatabaseCorruptionDetection::test_json_with_text_file_as_database \n[gw8] [ 31%] PASSED tests/test_coverage_targeted.py::TestVersionOutput::test_version_shows_backend \ntests/test_coverage_targeted.py::TestVersionOutput::test_version_shows_options \n[gw9] [ 31%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_bytes_flag \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_bytes_flag \n[gw5] [ 31%] PASSED tests/test_database_error_handling.py::TestDatabaseCorruptionDetection::test_json_with_text_file_as_database \n[gw8] [ 31%] PASSED tests/test_coverage_targeted.py::TestVersionOutput::test_version_shows_options \ntests/test_database_error_handling.py::TestDatabaseCorruptionDetection::test_xml_with_empty_database_file \ntests/test_database_error_handling.py::TestDatabaseCorruptionDetection::test_info_with_corrupt_database \n[gw9] [ 31%] FAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_bytes_flag \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_check_hard_links \n[gw5] [ 31%] PASSED tests/test_database_error_handling.py::TestDatabaseCorruptionDetection::test_xml_with_empty_database_file \ntests/test_database_error_handling.py::TestExistingTestDatabases::test_info_with_lmdb_database \n[gw8] [ 31%] PASSED tests/test_database_error_handling.py::TestDatabaseCorruptionDetection::test_info_with_corrupt_database \ntests/test_edge_cases.py::test_histogram_base10_flag \n[gw6] [ 31%] PASSED tests/test_database_error_handling.py::TestMultipleCommandsDifferentDatabases::test_multiple_commands_with_different_invalid_databases \ntests/test_database_error_handling.py::TestDatabaseForceOption::test_index_force_option_with_invalid_database \n[gw5] [ 31%] PASSED tests/test_database_error_handling.py::TestExistingTestDatabases::test_info_with_lmdb_database \ntests/test_database_error_handling.py::TestExistingTestDatabases::test_ls_with_sqlite3_database \n[gw8] [ 31%] PASSED tests/test_edge_cases.py::test_histogram_base10_flag \ntests/test_edge_cases.py::test_ls_classify_flag \n[gw1] [ 31%] RERUN tests/test_absolutely_50.py::TestFinal::test_xml_nested_deep_paths \ntests/test_absolutely_50.py::TestFinal::test_xml_nested_deep_paths \n[gw6] [ 32%] PASSED tests/test_database_error_handling.py::TestDatabaseForceOption::test_index_force_option_with_invalid_database \ntests/test_database_error_handling.py::TestDatabaseWithVeryLongPath::test_info_with_long_database_path \n[gw8] [ 32%] PASSED tests/test_edge_cases.py::test_ls_classify_flag \n[gw5] [ 32%] PASSED tests/test_database_error_handling.py::TestExistingTestDatabases::test_ls_with_sqlite3_database \ntests/test_database_error_handling.py::TestExistingTestDatabases::test_histogram_with_kyotocabinet_database \ntests/test_edge_cases.py::test_ls_color_flag \n[gw6] [ 32%] PASSED tests/test_database_error_handling.py::TestDatabaseWithVeryLongPath::test_info_with_long_database_path \ntests/test_database_error_handling.py::TestDefaultDatabaseBehavior::test_info_without_database_and_no_env \n[gw5] [ 32%] PASSED tests/test_database_error_handling.py::TestExistingTestDatabases::test_histogram_with_kyotocabinet_database \ntests/test_database_error_handling.py::TestExistingTestDatabases::test_topn_with_tokyocabinet_database \n[gw8] [ 32%] PASSED tests/test_edge_cases.py::test_ls_color_flag \ntests/test_edge_cases.py::test_ls_graph_flag \n[gw6] [ 32%] PASSED tests/test_database_error_handling.py::TestDefaultDatabaseBehavior::test_info_without_database_and_no_env \ntests/test_database_error_handling.py::TestDefaultDatabaseBehavior::test_ls_without_database_explicit_empty_env \n[gw7] [ 32%] RERUN tests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_short_form_no_space \ntests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_short_form_no_space \n[gw8] [ 32%] PASSED tests/test_edge_cases.py::test_ls_graph_flag \ntests/test_edge_cases.py::test_ls_recursive_flag \n[gw5] [ 32%] PASSED tests/test_database_error_handling.py::TestExistingTestDatabases::test_topn_with_tokyocabinet_database \ntests/test_database_error_handling.py::TestDatabasePathValidation::test_info_with_directory_instead_of_file \n[gw7] [ 32%] FAILED tests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_short_form_no_space \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_size \n[gw6] [ 33%] PASSED tests/test_database_error_handling.py::TestDefaultDatabaseBehavior::test_ls_without_database_explicit_empty_env \ntests/test_database_error_handling.py::TestDatabaseUncompressedOption::test_index_uncompressed_without_path \n[gw5] [ 33%] PASSED tests/test_database_error_handling.py::TestDatabasePathValidation::test_info_with_directory_instead_of_file \n[gw8] [ 33%] PASSED tests/test_edge_cases.py::test_ls_recursive_flag \ntests/test_edge_cases.py::test_ls_directory_flag \ntests/test_database_error_handling.py::TestDatabasePathValidation::test_ls_with_unreadable_database_path \n[gw6] [ 33%] PASSED tests/test_database_error_handling.py::TestDatabaseUncompressedOption::test_index_uncompressed_without_path \ntests/test_database_error_handling.py::TestDatabaseDryRunOption::test_index_dry_run_without_path \n[gw3] [ 33%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_force_flag \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_force_flag \n[gw8] [ 33%] PASSED tests/test_edge_cases.py::test_ls_directory_flag \n[gw5] [ 33%] PASSED tests/test_database_error_handling.py::TestDatabasePathValidation::test_ls_with_unreadable_database_path \ntests/test_database_error_handling.py::TestDatabasePathValidation::test_json_with_relative_database_path \ntests/test_edge_cases.py::test_ls_name_sort_flag \n[gw6] [ 33%] PASSED tests/test_database_error_handling.py::TestDatabaseDryRunOption::test_index_dry_run_without_path \ntests/test_edge_cases.py::test_empty_string_arguments \n[gw5] [ 33%] PASSED tests/test_database_error_handling.py::TestDatabasePathValidation::test_json_with_relative_database_path \ntests/test_database_error_handling.py::TestDatabasePathValidation::test_xml_with_special_characters_in_path \n[gw8] [ 34%] PASSED tests/test_edge_cases.py::test_ls_name_sort_flag \ntests/test_edge_cases.py::test_ls_levels_option \n[gw0] [ 34%] RERUN tests/test_50_percent.py::TestMoreLsCombinations::test_ls_classify_graph_ascii \ntests/test_50_percent.py::TestMoreLsCombinations::test_ls_classify_graph_ascii \n[gw6] [ 34%] PASSED tests/test_edge_cases.py::test_empty_string_arguments \ntests/test_edge_cases.py::test_very_long_path \n[gw4] [ 34%] RERUN tests/test_coverage_boost.py::TestManualCommand::test_manual_command_generates_markdown \ntests/test_coverage_boost.py::TestManualCommand::test_manual_command_generates_markdown \n[gw5] [ 34%] PASSED tests/test_database_error_handling.py::TestDatabasePathValidation::test_xml_with_special_characters_in_path \ntests/test_database_error_handling.py::TestDatabaseWithSymbolicLinks::test_info_with_broken_symlink \n[gw8] [ 34%] PASSED tests/test_edge_cases.py::test_ls_levels_option \ntests/test_edge_cases.py::test_graph_format_png \n[gw0] [ 34%] FAILED tests/test_50_percent.py::TestMoreLsCombinations::test_ls_classify_graph_ascii \ntests/test_50_percent.py::TestMoreLsCombinations::test_ls_recursive_name_sort \n[gw6] [ 34%] PASSED tests/test_edge_cases.py::test_very_long_path \ntests/test_edge_cases.py::test_special_characters_in_path \n[gw4] [ 34%] FAILED tests/test_coverage_boost.py::TestManualCommand::test_manual_command_generates_markdown \ntests/test_coverage_boost.py::TestManualCommand::test_manual_command_documents_all_subcommands \n[gw5] [ 34%] PASSED tests/test_database_error_handling.py::TestDatabaseWithSymbolicLinks::test_info_with_broken_symlink \n[gw8] [ 34%] PASSED tests/test_edge_cases.py::test_graph_format_png \ntests/test_edge_cases.py::test_graph_format_svg \ntests/test_database_error_handling.py::TestDatabaseOptionFormats::test_database_with_tilde_expansion \n[gw6] [ 34%] PASSED tests/test_edge_cases.py::test_special_characters_in_path \ntests/test_edge_cases.py::test_database_option_with_equals_sign \n[gw5] [ 34%] PASSED tests/test_database_error_handling.py::TestDatabaseOptionFormats::test_database_with_tilde_expansion \n[gw8] [ 35%] PASSED tests/test_edge_cases.py::test_graph_format_svg \ntests/test_database_error_handling.py::TestDatabaseOptionFormats::test_database_with_environment_variable \ntests/test_edge_cases.py::test_graph_format_pdf \n[gw2] [ 35%] RERUN tests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_all_subcommands \ntests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_all_subcommands \n[gw6] [ 35%] PASSED tests/test_edge_cases.py::test_database_option_with_equals_sign \ntests/test_edge_cases.py::test_bytes_flag_alone \n[gw8] [ 35%] PASSED tests/test_edge_cases.py::test_graph_format_pdf \ntests/test_edge_cases.py::test_graph_format_html \n[gw5] [ 35%] PASSED tests/test_database_error_handling.py::TestDatabaseOptionFormats::test_database_with_environment_variable \ntests/test_edge_cases.py::test_graph_with_levels \n[gw2] [ 35%] FAILED tests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_all_subcommands \ntests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_option_format \n[gw6] [ 35%] PASSED tests/test_edge_cases.py::test_bytes_flag_alone \ntests/test_edge_cases.py::test_apparent_flag_alone \n[gw8] [ 35%] PASSED tests/test_edge_cases.py::test_graph_format_html \ntests/test_edge_cases.py::test_graph_with_size \n[gw5] [ 35%] PASSED tests/test_edge_cases.py::test_graph_with_levels \ntests/test_edge_cases.py::test_graph_with_gradient \n[gw6] [ 35%] PASSED tests/test_edge_cases.py::test_apparent_flag_alone \ntests/test_edge_cases.py::test_index_with_one_file_system \n[gw8] [ 35%] PASSED tests/test_edge_cases.py::test_graph_with_size \n[gw5] [ 36%] PASSED tests/test_edge_cases.py::test_graph_with_gradient \ntests/test_edge_cases.py::test_graph_with_palette \ntests/test_edge_coverage.py::TestMinSizeFiltering::test_json_min_size_large \n[gw6] [ 36%] PASSED tests/test_edge_cases.py::test_index_with_one_file_system \n[gw5] [ 36%] PASSED tests/test_edge_cases.py::test_graph_with_palette \ntests/test_edge_cases.py::test_graph_with_count \ntests/test_edge_cases.py::test_index_with_check_hard_links \n[gw9] [ 36%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_check_hard_links \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_check_hard_links \n[gw5] [ 36%] PASSED tests/test_edge_cases.py::test_graph_with_count \n[gw6] [ 36%] PASSED tests/test_edge_cases.py::test_index_with_check_hard_links \ntests/test_edge_cases.py::test_ui_with_no_color \ntests/test_edge_cases.py::test_index_with_verbose \n[gw6] [ 36%] PASSED tests/test_edge_cases.py::test_index_with_verbose \ntests/test_edge_coverage.py::TestRecursiveListing::test_ls_recursive_with_levels_0 \n[gw5] [ 36%] PASSED tests/test_edge_cases.py::test_ui_with_no_color \ntests/test_edge_cases.py::test_ui_with_name_sort \n[gw1] [ 36%] RERUN tests/test_absolutely_50.py::TestFinal::test_xml_nested_deep_paths \ntests/test_absolutely_50.py::TestFinal::test_xml_nested_deep_paths \n[gw5] [ 36%] PASSED tests/test_edge_cases.py::test_ui_with_name_sort \ntests/test_edge_cases.py::test_gui_with_dark \n[gw1] [ 36%] FAILED tests/test_absolutely_50.py::TestFinal::test_xml_nested_deep_paths \ntests/test_absolutely_50.py::TestFinal::test_json_nested_deep_paths \n[gw5] [ 37%] PASSED tests/test_edge_cases.py::test_gui_with_dark \ntests/test_edge_cases.py::test_xml_with_exclude_files \n[gw5] [ 37%] PASSED tests/test_edge_cases.py::test_xml_with_exclude_files \ntests/test_edge_cases.py::test_xml_with_min_size \n[gw7] [ 37%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_size \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_size \n[gw5] [ 37%] PASSED tests/test_edge_cases.py::test_xml_with_min_size \ntests/test_edge_cases.py::test_json_with_exclude_files \n[gw3] [ 37%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_force_flag \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_force_flag \n[gw5] [ 37%] PASSED tests/test_edge_cases.py::test_json_with_exclude_files \ntests/test_edge_cases.py::test_json_with_min_size \n[gw3] [ 37%] FAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_force_flag \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_progress_flag \n[gw5] [ 37%] PASSED tests/test_edge_cases.py::test_json_with_min_size \ntests/test_edge_cases.py::test_index_with_exclude_pattern \n[gw0] [ 37%] RERUN tests/test_50_percent.py::TestMoreLsCombinations::test_ls_recursive_name_sort \ntests/test_50_percent.py::TestMoreLsCombinations::test_ls_recursive_name_sort \n[gw5] [ 37%] PASSED tests/test_edge_cases.py::test_index_with_exclude_pattern \ntests/test_edge_cases.py::test_index_with_max_depth \n[gw4] [ 37%] RERUN tests/test_coverage_boost.py::TestManualCommand::test_manual_command_documents_all_subcommands \ntests/test_coverage_boost.py::TestManualCommand::test_manual_command_documents_all_subcommands \n[gw5] [ 38%] PASSED tests/test_edge_cases.py::test_index_with_max_depth \ntests/test_edge_coverage.py::TestNameSorting::test_ls_name_sort \n[gw2] [ 38%] RERUN tests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_option_format \ntests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_option_format \n[gw8] [ 38%] RERUN tests/test_edge_coverage.py::TestMinSizeFiltering::test_json_min_size_large \ntests/test_edge_coverage.py::TestMinSizeFiltering::test_json_min_size_large \n[gw9] [ 38%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_check_hard_links \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_check_hard_links \n[gw9] [ 38%] FAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_check_hard_links \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_hide_file_names \n[gw6] [ 38%] RERUN tests/test_edge_coverage.py::TestRecursiveListing::test_ls_recursive_with_levels_0 \ntests/test_edge_coverage.py::TestRecursiveListing::test_ls_recursive_with_levels_0 \n[gw1] [ 38%] RERUN tests/test_absolutely_50.py::TestFinal::test_json_nested_deep_paths \ntests/test_absolutely_50.py::TestFinal::test_json_nested_deep_paths \n[gw7] [ 38%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_size \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_size \n[gw7] [ 38%] FAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_size \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_rainbow \n[gw3] [ 38%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_progress_flag \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_progress_flag \n[gw0] [ 38%] RERUN tests/test_50_percent.py::TestMoreLsCombinations::test_ls_recursive_name_sort \ntests/test_50_percent.py::TestMoreLsCombinations::test_ls_recursive_name_sort \n[gw0] [ 38%] FAILED tests/test_50_percent.py::TestMoreLsCombinations::test_ls_recursive_name_sort \ntests/test_50_percent.py::TestCgiEnvironment::test_cgi_with_query_string \n[gw4] [ 38%] RERUN tests/test_coverage_boost.py::TestManualCommand::test_manual_command_documents_all_subcommands \ntests/test_coverage_boost.py::TestManualCommand::test_manual_command_documents_all_subcommands \n[gw5] [ 38%] RERUN tests/test_edge_coverage.py::TestNameSorting::test_ls_name_sort \ntests/test_edge_coverage.py::TestNameSorting::test_ls_name_sort \n[gw0] [ 38%] PASSED tests/test_50_percent.py::TestCgiEnvironment::test_cgi_with_query_string \ntests/test_50_percent.py::TestCgiEnvironment::test_cgi_with_request_uri \n[gw4] [ 38%] FAILED tests/test_coverage_boost.py::TestManualCommand::test_manual_command_documents_all_subcommands \ntests/test_coverage_boost.py::TestManualCommand::test_manual_command_includes_option_descriptions \n[gw0] [ 38%] PASSED tests/test_50_percent.py::TestCgiEnvironment::test_cgi_with_request_uri \ntests/test_50_percent.py::TestCgiEnvironment::test_cgi_gradient_palette_combo \n[gw2] [ 38%] RERUN tests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_option_format \ntests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_option_format \n[gw0] [ 39%] PASSED tests/test_50_percent.py::TestCgiEnvironment::test_cgi_gradient_palette_combo \ntests/test_50_percent.py::TestLsColorASCII::test_ls_color_classify \n[gw2] [ 39%] FAILED tests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_option_format \ntests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_includes_option_descriptions \n[gw8] [ 39%] RERUN tests/test_edge_coverage.py::TestMinSizeFiltering::test_json_min_size_large \ntests/test_edge_coverage.py::TestMinSizeFiltering::test_json_min_size_large \n[gw2] [ 39%] PASSED tests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_includes_option_descriptions \ntests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_command_usage \n[gw8] [ 39%] FAILED tests/test_edge_coverage.py::TestMinSizeFiltering::test_json_min_size_large \ntests/test_edge_coverage.py::TestMinSizeFiltering::test_xml_min_size_zero \n[gw9] [ 39%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_hide_file_names \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_hide_file_names \n[gw6] [ 39%] RERUN tests/test_edge_coverage.py::TestRecursiveListing::test_ls_recursive_with_levels_0 \ntests/test_edge_coverage.py::TestRecursiveListing::test_ls_recursive_with_levels_0 \n[gw6] [ 39%] FAILED tests/test_edge_coverage.py::TestRecursiveListing::test_ls_recursive_with_levels_0 \ntests/test_edge_coverage.py::TestRecursiveListing::test_ls_recursive_with_levels_10 \n[gw1] [ 39%] RERUN tests/test_absolutely_50.py::TestFinal::test_json_nested_deep_paths \ntests/test_absolutely_50.py::TestFinal::test_json_nested_deep_paths \n[gw1] [ 39%] FAILED tests/test_absolutely_50.py::TestFinal::test_json_nested_deep_paths \ntests/test_absolutely_50.py::TestFinal::test_ls_full_path_all_dirs \n[gw7] [ 39%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_rainbow \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_rainbow \n[gw3] [ 39%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_progress_flag \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_progress_flag \n[gw3] [ 39%] FAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_progress_flag \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_dark \n[gw5] [ 39%] RERUN tests/test_edge_coverage.py::TestNameSorting::test_ls_name_sort \ntests/test_edge_coverage.py::TestNameSorting::test_ls_name_sort \n[gw4] [ 39%] RERUN tests/test_coverage_boost.py::TestManualCommand::test_manual_command_includes_option_descriptions \ntests/test_coverage_boost.py::TestManualCommand::test_manual_command_includes_option_descriptions \n[gw5] [ 39%] FAILED tests/test_edge_coverage.py::TestNameSorting::test_ls_name_sort \ntests/test_edge_coverage.py::TestNameSorting::test_ui_name_sort_option \n[gw5] [ 39%] PASSED tests/test_edge_coverage.py::TestNameSorting::test_ui_name_sort_option \ntests/test_edge_coverage.py::TestGlobalOptionOrdering::test_verbose_before_subcommand \n[gw0] [ 39%] RERUN tests/test_50_percent.py::TestLsColorASCII::test_ls_color_classify \ntests/test_50_percent.py::TestLsColorASCII::test_ls_color_classify \n[gw5] [ 39%] PASSED tests/test_edge_coverage.py::TestGlobalOptionOrdering::test_verbose_before_subcommand \ntests/test_edge_coverage.py::TestGlobalOptionOrdering::test_quiet_after_subcommand \n[gw2] [ 39%] RERUN tests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_command_usage \ntests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_command_usage \n[gw5] [ 40%] PASSED tests/test_edge_coverage.py::TestGlobalOptionOrdering::test_quiet_after_subcommand \ntests/test_edge_coverage.py::TestCgiListMode::test_cgi_list_generates_table \n[gw8] [ 40%] RERUN tests/test_edge_coverage.py::TestMinSizeFiltering::test_xml_min_size_zero \ntests/test_edge_coverage.py::TestMinSizeFiltering::test_xml_min_size_zero \n[gw5] [ 40%] PASSED tests/test_edge_coverage.py::TestCgiListMode::test_cgi_list_generates_table \ntests/test_edge_coverage.py::TestTooltipOption::test_cgi_tooltip_enabled \n[gw9] [ 40%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_hide_file_names \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_hide_file_names \n[gw5] [ 40%] PASSED tests/test_edge_coverage.py::TestTooltipOption::test_cgi_tooltip_enabled \ntests/test_edge_coverage.py::TestFullPathMode::test_ls_full_path_recursive \n[gw9] [ 40%] FAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_hide_file_names \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_one_file_system \n[gw6] [ 40%] RERUN tests/test_edge_coverage.py::TestRecursiveListing::test_ls_recursive_with_levels_10 \ntests/test_edge_coverage.py::TestRecursiveListing::test_ls_recursive_with_levels_10 \n[gw1] [ 40%] RERUN tests/test_absolutely_50.py::TestFinal::test_ls_full_path_all_dirs \ntests/test_absolutely_50.py::TestFinal::test_ls_full_path_all_dirs \n[gw7] [ 40%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_rainbow \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_rainbow \n[gw7] [ 40%] FAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_rainbow \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_greyscale \n[gw3] [ 40%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_dark \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_dark \n[gw4] [ 40%] RERUN tests/test_coverage_boost.py::TestManualCommand::test_manual_command_includes_option_descriptions \ntests/test_coverage_boost.py::TestManualCommand::test_manual_command_includes_option_descriptions \n[gw4] [ 40%] FAILED tests/test_coverage_boost.py::TestManualCommand::test_manual_command_includes_option_descriptions \ntests/test_coverage_boost.py::TestVerbosityLevels::test_verbose_flag_with_help \n[gw0] [ 40%] RERUN tests/test_50_percent.py::TestLsColorASCII::test_ls_color_classify \ntests/test_50_percent.py::TestLsColorASCII::test_ls_color_classify \n[gw4] [ 40%] PASSED tests/test_coverage_boost.py::TestVerbosityLevels::test_verbose_flag_with_help \ntests/test_coverage_boost.py::TestVerbosityLevels::test_debug_flag_with_help \n[gw0] [ 40%] FAILED tests/test_50_percent.py::TestLsColorASCII::test_ls_color_classify \ntests/test_50_percent.py::TestLsColorASCII::test_ls_color_graph \n[gw2] [ 40%] RERUN tests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_command_usage \ntests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_command_usage \n[gw4] [ 40%] PASSED tests/test_coverage_boost.py::TestVerbosityLevels::test_debug_flag_with_help \ntests/test_coverage_boost.py::TestVerbosityLevels::test_quiet_flag_with_help \n[gw8] [ 40%] RERUN tests/test_edge_coverage.py::TestMinSizeFiltering::test_xml_min_size_zero \ntests/test_edge_coverage.py::TestMinSizeFiltering::test_xml_min_size_zero \n[gw4] [ 41%] PASSED tests/test_coverage_boost.py::TestVerbosityLevels::test_quiet_flag_with_help \ntests/test_coverage_boost.py::TestVerbosityLevels::test_multiple_verbose_flags \n[gw2] [ 41%] FAILED tests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_command_usage \ntests/test_additional_coverage_phase2.py::TestCGIMode::test_cgi_mode_via_gateway_interface \n[gw8] [ 41%] FAILED tests/test_edge_coverage.py::TestMinSizeFiltering::test_xml_min_size_zero \ntests/test_edge_coverage.py::TestMinSizeFiltering::test_json_min_size_zero \n[gw5] [ 41%] RERUN tests/test_edge_coverage.py::TestFullPathMode::test_ls_full_path_recursive \ntests/test_edge_coverage.py::TestFullPathMode::test_ls_full_path_recursive \n[gw9] [ 41%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_one_file_system \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_one_file_system \n[gw4] [ 41%] PASSED tests/test_coverage_boost.py::TestVerbosityLevels::test_multiple_verbose_flags \ntests/test_coverage_boost.py::TestGraphCommandFormats::test_graph_svg_format_specified \n[gw2] [ 41%] PASSED tests/test_additional_coverage_phase2.py::TestCGIMode::test_cgi_mode_via_gateway_interface \ntests/test_additional_coverage_phase2.py::TestCGIMode::test_cgi_mode_without_database \n[gw4] [ 41%] PASSED tests/test_coverage_boost.py::TestGraphCommandFormats::test_graph_svg_format_specified \ntests/test_coverage_boost.py::TestGraphCommandFormats::test_graph_format_option_help \n[gw2] [ 41%] PASSED tests/test_additional_coverage_phase2.py::TestCGIMode::test_cgi_mode_without_database \ntests/test_additional_coverage_phase2.py::TestGlobalOptionCombinations::test_debug_verbose_together \n[gw6] [ 41%] RERUN tests/test_edge_coverage.py::TestRecursiveListing::test_ls_recursive_with_levels_10 \ntests/test_edge_coverage.py::TestRecursiveListing::test_ls_recursive_with_levels_10 \n[gw4] [ 41%] PASSED tests/test_coverage_boost.py::TestGraphCommandFormats::test_graph_format_option_help \ntests/test_coverage_boost.py::TestDatabasePathVariations::test_database_with_special_characters \n[gw2] [ 41%] PASSED tests/test_additional_coverage_phase2.py::TestGlobalOptionCombinations::test_debug_verbose_together \ntests/test_additional_coverage_phase2.py::TestGlobalOptionCombinations::test_quiet_with_version \n[gw6] [ 41%] FAILED tests/test_edge_coverage.py::TestRecursiveListing::test_ls_recursive_with_levels_10 \ntests/test_edge_coverage.py::TestSizeDisplayFormats::test_ls_bytes_exact \n[gw1] [ 41%] RERUN tests/test_absolutely_50.py::TestFinal::test_ls_full_path_all_dirs \ntests/test_absolutely_50.py::TestFinal::test_ls_full_path_all_dirs \n[gw2] [ 42%] PASSED tests/test_additional_coverage_phase2.py::TestGlobalOptionCombinations::test_quiet_with_version \n[gw4] [ 42%] PASSED tests/test_coverage_boost.py::TestDatabasePathVariations::test_database_with_special_characters \ntests/test_additional_coverage_phase2.py::TestGlobalOptionCombinations::test_debug_with_help \ntests/test_coverage_boost.py::TestDatabasePathVariations::test_database_with_relative_path \n[gw7] [ 42%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_greyscale \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_greyscale \n[gw2] [ 42%] PASSED tests/test_additional_coverage_phase2.py::TestGlobalOptionCombinations::test_debug_with_help \n[gw4] [ 42%] PASSED tests/test_coverage_boost.py::TestDatabasePathVariations::test_database_with_relative_path \ntests/test_additional_coverage_phase2.py::TestGlobalOptionCombinations::test_verbose_with_invalid_command \ntests/test_coverage_boost.py::TestDatabasePathVariations::test_database_empty_string \n[gw1] [ 42%] FAILED tests/test_absolutely_50.py::TestFinal::test_ls_full_path_all_dirs \ntests/test_absolutely_50.py::TestFinal::test_histogram_all_databases \n[gw3] [ 42%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_dark \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_dark \n[gw2] [ 42%] PASSED tests/test_additional_coverage_phase2.py::TestGlobalOptionCombinations::test_verbose_with_invalid_command \ntests/test_additional_coverage_phase2.py::TestHelpVariations::test_help_subcommand_without_args \n[gw4] [ 42%] PASSED tests/test_coverage_boost.py::TestDatabasePathVariations::test_database_empty_string \ntests/test_coverage_boost.py::TestCgiCommandOptions::test_cgi_with_header_option \n[gw3] [ 42%] FAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_dark \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_dpi \n[gw2] [ 42%] PASSED tests/test_additional_coverage_phase2.py::TestHelpVariations::test_help_subcommand_without_args \n[gw4] [ 42%] PASSED tests/test_coverage_boost.py::TestCgiCommandOptions::test_cgi_with_header_option \ntests/test_additional_coverage_phase2.py::TestHelpVariations::test_help_with_all_flag \ntests/test_coverage_boost.py::TestCgiCommandOptions::test_cgi_with_footer_option \n[gw2] [ 43%] PASSED tests/test_additional_coverage_phase2.py::TestHelpVariations::test_help_with_all_flag \ntests/test_additional_coverage_phase2.py::TestHelpVariations::test_help_all_short_form \n[gw4] [ 43%] PASSED tests/test_coverage_boost.py::TestCgiCommandOptions::test_cgi_with_footer_option \ntests/test_coverage_boost.py::TestCgiCommandOptions::test_cgi_with_css_url_option \n[gw2] [ 43%] PASSED tests/test_additional_coverage_phase2.py::TestHelpVariations::test_help_all_short_form \ntests/test_additional_coverage_phase2.py::TestHelpVariations::test_help_for_specific_command \n[gw4] [ 43%] PASSED tests/test_coverage_boost.py::TestCgiCommandOptions::test_cgi_with_css_url_option \ntests/test_extensive_options.py::TestNumericOptionBoundaries::test_index_max_depth_zero \n[gw4] [ 43%] PASSED tests/test_extensive_options.py::TestNumericOptionBoundaries::test_index_max_depth_zero \ntests/test_extensive_options.py::TestNumericOptionBoundaries::test_ls_levels_very_large \n[gw4] [ 43%] PASSED tests/test_extensive_options.py::TestNumericOptionBoundaries::test_ls_levels_very_large \ntests/test_extensive_options.py::TestNumericOptionBoundaries::test_graph_size_small \n[gw4] [ 43%] PASSED tests/test_extensive_options.py::TestNumericOptionBoundaries::test_graph_size_small \ntests/test_extensive_options.py::TestNumericOptionBoundaries::test_graph_dpi_extreme \n[gw4] [ 43%] PASSED tests/test_extensive_options.py::TestNumericOptionBoundaries::test_graph_dpi_extreme \ntests/test_extensive_options.py::TestStringOptionVariations::test_index_exclude_absolute_path \n[gw0] [ 43%] RERUN tests/test_50_percent.py::TestLsColorASCII::test_ls_color_graph \ntests/test_50_percent.py::TestLsColorASCII::test_ls_color_graph \n[gw4] [ 44%] PASSED tests/test_extensive_options.py::TestStringOptionVariations::test_index_exclude_absolute_path \ntests/test_extensive_options.py::TestStringOptionVariations::test_index_exclude_relative_path \n[gw4] [ 44%] PASSED tests/test_extensive_options.py::TestStringOptionVariations::test_index_exclude_relative_path \ntests/test_extensive_options.py::TestStringOptionVariations::test_graph_palette_various_values \n[gw2] [ 44%] PASSED tests/test_additional_coverage_phase2.py::TestHelpVariations::test_help_for_specific_command \ntests/test_additional_coverage_phase2.py::TestIndexOptions::test_index_with_fs_exclude \n[gw8] [ 44%] RERUN tests/test_edge_coverage.py::TestMinSizeFiltering::test_json_min_size_zero \ntests/test_edge_coverage.py::TestMinSizeFiltering::test_json_min_size_zero \n[gw5] [ 44%] RERUN tests/test_edge_coverage.py::TestFullPathMode::test_ls_full_path_recursive \ntests/test_edge_coverage.py::TestFullPathMode::test_ls_full_path_recursive \n[gw9] [ 44%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_one_file_system \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_one_file_system \n[gw9] [ 44%] FAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_one_file_system \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_uncompressed \n[gw5] [ 44%] FAILED tests/test_edge_coverage.py::TestFullPathMode::test_ls_full_path_recursive \n[gw2] [ 44%] PASSED tests/test_additional_coverage_phase2.py::TestIndexOptions::test_index_with_fs_exclude \ntests/test_edge_coverage.py::TestAsciiMode::test_ls_ascii_tree \ntests/test_additional_coverage_phase2.py::TestIndexOptions::test_index_with_fs_include \n[gw2] [ 44%] PASSED tests/test_additional_coverage_phase2.py::TestIndexOptions::test_index_with_fs_include \ntests/test_additional_coverage_phase2.py::TestIndexOptions::test_index_with_uid \n[gw6] [ 44%] RERUN tests/test_edge_coverage.py::TestSizeDisplayFormats::test_ls_bytes_exact \ntests/test_edge_coverage.py::TestSizeDisplayFormats::test_ls_bytes_exact \n[gw2] [ 44%] PASSED tests/test_additional_coverage_phase2.py::TestIndexOptions::test_index_with_uid \ntests/test_additional_coverage_phase2.py::TestIndexOptions::test_index_with_username \n[gw4] [ 44%] PASSED tests/test_extensive_options.py::TestStringOptionVariations::test_graph_palette_various_values \ntests/test_extensive_options.py::TestStringOptionVariations::test_graph_output_various_extensions \n[gw7] [ 44%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_greyscale \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_greyscale \n[gw2] [ 45%] PASSED tests/test_additional_coverage_phase2.py::TestIndexOptions::test_index_with_username \ntests/test_extensive_options.py::TestBooleanFlags::test_index_progress_flag \n[gw1] [ 45%] RERUN tests/test_absolutely_50.py::TestFinal::test_histogram_all_databases \ntests/test_absolutely_50.py::TestFinal::test_histogram_all_databases \n[gw7] [ 45%] FAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_greyscale \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_monochrome \n[gw2] [ 45%] PASSED tests/test_extensive_options.py::TestBooleanFlags::test_index_progress_flag \ntests/test_extensive_options.py::TestBooleanFlags::test_index_force_flag \n[gw2] [ 45%] PASSED tests/test_extensive_options.py::TestBooleanFlags::test_index_force_flag \ntests/test_extensive_options.py::TestBooleanFlags::test_ls_recursive_flag \n[gw3] [ 45%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_dpi \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_dpi \n[gw2] [ 45%] PASSED tests/test_extensive_options.py::TestBooleanFlags::test_ls_recursive_flag \ntests/test_extensive_options.py::TestBooleanFlags::test_graph_gradient_flag \n[gw4] [ 45%] PASSED tests/test_extensive_options.py::TestStringOptionVariations::test_graph_output_various_extensions \ntests/test_extensive_options.py::TestFloatingPointOptions::test_graph_fuzz_zero \n[gw2] [ 45%] PASSED tests/test_extensive_options.py::TestBooleanFlags::test_graph_gradient_flag \n[gw4] [ 45%] PASSED tests/test_extensive_options.py::TestFloatingPointOptions::test_graph_fuzz_zero \ntests/test_extensive_options.py::TestFilesystemOptions::test_index_fs_exclude_single \ntests/test_extensive_options.py::TestFloatingPointOptions::test_graph_fuzz_one \n[gw4] [ 46%] PASSED tests/test_extensive_options.py::TestFloatingPointOptions::test_graph_fuzz_one \n[gw2] [ 46%] PASSED tests/test_extensive_options.py::TestFilesystemOptions::test_index_fs_exclude_single \ntests/test_extensive_options.py::TestFloatingPointOptions::test_graph_fuzz_decimal \ntests/test_extensive_options.py::TestFilesystemOptions::test_index_fs_exclude_multiple \n[gw2] [ 46%] PASSED tests/test_extensive_options.py::TestFilesystemOptions::test_index_fs_exclude_multiple \ntests/test_extensive_options.py::TestFilesystemOptions::test_index_fs_include \n[gw4] [ 46%] PASSED tests/test_extensive_options.py::TestFloatingPointOptions::test_graph_fuzz_decimal \ntests/test_extensive_options.py::TestUserOptions::test_index_username_nobody \n[gw4] [ 46%] PASSED tests/test_extensive_options.py::TestUserOptions::test_index_username_nobody \ntests/test_extensive_options.py::TestTopNOptions::test_index_topn_small \n[gw2] [ 46%] PASSED tests/test_extensive_options.py::TestFilesystemOptions::test_index_fs_include \ntests/test_extensive_options.py::TestFilesystemOptions::test_index_one_file_system \n[gw2] [ 46%] PASSED tests/test_extensive_options.py::TestFilesystemOptions::test_index_one_file_system \n[gw4] [ 46%] PASSED tests/test_extensive_options.py::TestTopNOptions::test_index_topn_small \ntests/test_extensive_options.py::TestTopNOptions::test_index_topn_default \ntests/test_extensive_options.py::TestUserOptions::test_index_uid_numeric \n[gw0] [ 46%] RERUN tests/test_50_percent.py::TestLsColorASCII::test_ls_color_graph \ntests/test_50_percent.py::TestLsColorASCII::test_ls_color_graph \n[gw2] [ 46%] PASSED tests/test_extensive_options.py::TestUserOptions::test_index_uid_numeric \ntests/test_extensive_options.py::TestUserOptions::test_index_uid_large \n[gw4] [ 47%] PASSED tests/test_extensive_options.py::TestTopNOptions::test_index_topn_default \ntests/test_extensive_options.py::TestTopNOptions::test_index_topn_min_size \n[gw0] [ 47%] FAILED tests/test_50_percent.py::TestLsColorASCII::test_ls_color_graph \ntests/test_50_percent.py::TestGraphAllFormats::test_graph_pdf_with_options \n[gw4] [ 47%] PASSED tests/test_extensive_options.py::TestTopNOptions::test_index_topn_min_size \ntests/test_extensive_options.py::TestHistogramOptions::test_histogram_base10_flag \n[gw2] [ 47%] PASSED tests/test_extensive_options.py::TestUserOptions::test_index_uid_large \ntests/test_extensive_options.py::TestUserOptions::test_index_username_root \n[gw8] [ 47%] RERUN tests/test_edge_coverage.py::TestMinSizeFiltering::test_json_min_size_zero \ntests/test_edge_coverage.py::TestMinSizeFiltering::test_json_min_size_zero \n[gw4] [ 47%] PASSED tests/test_extensive_options.py::TestHistogramOptions::test_histogram_base10_flag \n[gw0] [ 47%] PASSED tests/test_50_percent.py::TestGraphAllFormats::test_graph_pdf_with_options \ntests/test_extensive_options.py::TestHistogramOptions::test_info_histogram_flag \ntests/test_50_percent.py::TestGraphAllFormats::test_graph_html_with_options \n[gw2] [ 47%] PASSED tests/test_extensive_options.py::TestUserOptions::test_index_username_root \ntests/test_extensive_options.py::TestVisualizationColorOptions::test_ls_color_option \n[gw9] [ 47%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_uncompressed \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_uncompressed \n[gw8] [ 47%] FAILED tests/test_edge_coverage.py::TestMinSizeFiltering::test_json_min_size_zero \ntests/test_edge_coverage.py::TestCountMode::test_ls_count_mode \n[gw4] [ 47%] PASSED tests/test_extensive_options.py::TestHistogramOptions::test_info_histogram_flag \n[gw2] [ 47%] PASSED tests/test_extensive_options.py::TestVisualizationColorOptions::test_ls_color_option \n[gw0] [ 48%] PASSED tests/test_50_percent.py::TestGraphAllFormats::test_graph_html_with_options \ntests/test_extensive_options.py::TestXMLAndJSONOptions::test_xml_exclude_files \ntests/test_extensive_options.py::TestVisualizationColorOptions::test_ui_no_color_option \ntests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_xml_min_size_10 \n[gw5] [ 48%] RERUN tests/test_edge_coverage.py::TestAsciiMode::test_ls_ascii_tree \ntests/test_edge_coverage.py::TestAsciiMode::test_ls_ascii_tree \n[gw4] [ 48%] PASSED tests/test_extensive_options.py::TestXMLAndJSONOptions::test_xml_exclude_files \ntests/test_extensive_options.py::TestXMLAndJSONOptions::test_json_exclude_files \n[gw2] [ 48%] PASSED tests/test_extensive_options.py::TestVisualizationColorOptions::test_ui_no_color_option \ntests/test_extensive_options.py::TestVisualizationColorOptions::test_gui_dark_option \n[gw6] [ 48%] RERUN tests/test_edge_coverage.py::TestSizeDisplayFormats::test_ls_bytes_exact \ntests/test_edge_coverage.py::TestSizeDisplayFormats::test_ls_bytes_exact \n[gw4] [ 48%] PASSED tests/test_extensive_options.py::TestXMLAndJSONOptions::test_json_exclude_files \ntests/test_extensive_options.py::TestXMLAndJSONOptions::test_xml_min_size \n[gw2] [ 48%] PASSED tests/test_extensive_options.py::TestVisualizationColorOptions::test_gui_dark_option \ntests/test_extensive_options.py::TestDirectoryOptions::test_ls_directory_option \n[gw6] [ 48%] FAILED tests/test_edge_coverage.py::TestSizeDisplayFormats::test_ls_bytes_exact \ntests/test_edge_coverage.py::TestSizeDisplayFormats::test_info_bytes_exact \n[gw2] [ 48%] PASSED tests/test_extensive_options.py::TestDirectoryOptions::test_ls_directory_option \n[gw4] [ 48%] PASSED tests/test_extensive_options.py::TestXMLAndJSONOptions::test_xml_min_size \ntests/test_extensive_options.py::TestDirectoryOptions::test_ls_dirs_only \ntests/test_extensive_options.py::TestXMLAndJSONOptions::test_json_min_size_large \n[gw1] [ 48%] RERUN tests/test_absolutely_50.py::TestFinal::test_histogram_all_databases \ntests/test_absolutely_50.py::TestFinal::test_histogram_all_databases \n[gw7] [ 48%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_monochrome \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_monochrome \n[gw4] [ 49%] PASSED tests/test_extensive_options.py::TestXMLAndJSONOptions::test_json_min_size_large \ntests/test_extensive_options.py::TestHideFileNamesOption::test_index_hide_file_names \n[gw2] [ 49%] PASSED tests/test_extensive_options.py::TestDirectoryOptions::test_ls_dirs_only \ntests/test_extensive_options.py::TestSortingOptions::test_ls_name_sort \n[gw1] [ 49%] FAILED tests/test_absolutely_50.py::TestFinal::test_histogram_all_databases \ntests/test_absolutely_50.py::TestFinal::test_info_all_databases \n[gw3] [ 49%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_dpi \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_dpi \n[gw4] [ 49%] PASSED tests/test_extensive_options.py::TestHideFileNamesOption::test_index_hide_file_names \n[gw2] [ 49%] PASSED tests/test_extensive_options.py::TestSortingOptions::test_ls_name_sort \ntests/test_extensive_options.py::TestRingGapOption::test_graph_ring_gap_zero \ntests/test_extensive_options.py::TestSortingOptions::test_ui_name_sort \n[gw3] [ 49%] FAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_dpi \ntests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_apparent \n[gw4] [ 49%] PASSED tests/test_extensive_options.py::TestRingGapOption::test_graph_ring_gap_zero \n[gw2] [ 49%] PASSED tests/test_extensive_options.py::TestSortingOptions::test_ui_name_sort \ntests/test_extensive_options.py::TestRingGapOption::test_cgi_ring_gap \ntests/test_extensive_options.py::TestOutputFormatOptions::test_ls_ascii_option \n[gw2] [ 49%] PASSED tests/test_extensive_options.py::TestOutputFormatOptions::test_ls_ascii_option \n[gw4] [ 49%] PASSED tests/test_extensive_options.py::TestRingGapOption::test_cgi_ring_gap \ntests/test_extensive_options.py::TestOutputFormatOptions::test_ls_classify_option \ntests/test_extensive_options.py::TestRingGapOption::test_gui_ring_gap \n[gw2] [ 50%] PASSED tests/test_extensive_options.py::TestOutputFormatOptions::test_ls_classify_option \n[gw4] [ 50%] PASSED tests/test_extensive_options.py::TestRingGapOption::test_gui_ring_gap \ntests/test_extensive_options.py::TestOutputFormatOptions::test_ls_full_path_option \ntests/test_extensive_options.py::TestSizeOption::test_graph_size_option \n[gw4] [ 50%] PASSED tests/test_extensive_options.py::TestSizeOption::test_graph_size_option \ntests/test_extensive_options.py::TestSizeOption::test_cgi_size_option \n[gw2] [ 50%] PASSED tests/test_extensive_options.py::TestOutputFormatOptions::test_ls_full_path_option \ntests/test_final_50_percent.py::TestIndexCommandErrorPaths::test_index_with_invalid_max_depth \n[gw2] [ 50%] PASSED tests/test_final_50_percent.py::TestIndexCommandErrorPaths::test_index_with_invalid_max_depth \ntests/test_final_50_percent.py::TestIndexCommandErrorPaths::test_index_with_uid_and_username \n[gw4] [ 50%] PASSED tests/test_extensive_options.py::TestSizeOption::test_cgi_size_option \ntests/test_final_14_lines.py::TestEvenMoreCombinations::test_ls_directory_recursive \n[gw2] [ 50%] PASSED tests/test_final_50_percent.py::TestIndexCommandErrorPaths::test_index_with_uid_and_username \ntests/test_final_50_percent.py::TestIndexCommandErrorPaths::test_index_with_topn_and_topn_min \n[gw2] [ 50%] PASSED tests/test_final_50_percent.py::TestIndexCommandErrorPaths::test_index_with_topn_and_topn_min \ntests/test_final_50_percent.py::TestIndexCommandErrorPaths::test_index_with_buckets \n[gw2] [ 50%] PASSED tests/test_final_50_percent.py::TestIndexCommandErrorPaths::test_index_with_buckets \ntests/test_final_50_percent.py::TestLsCommandErrorPaths::test_ls_with_invalid_levels \n[gw2] [ 51%] PASSED tests/test_final_50_percent.py::TestLsCommandErrorPaths::test_ls_with_invalid_levels \ntests/test_final_50_percent.py::TestLsCommandErrorPaths::test_ls_with_multiple_sort_options \n[gw9] [ 51%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_uncompressed \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_uncompressed \n[gw8] [ 51%] RERUN tests/test_edge_coverage.py::TestCountMode::test_ls_count_mode \ntests/test_edge_coverage.py::TestCountMode::test_ls_count_mode \n[gw5] [ 51%] RERUN tests/test_edge_coverage.py::TestAsciiMode::test_ls_ascii_tree \ntests/test_edge_coverage.py::TestAsciiMode::test_ls_ascii_tree \n[gw0] [ 51%] RERUN tests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_xml_min_size_10 \ntests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_xml_min_size_10 \n[gw9] [ 51%] FAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_uncompressed \n[gw2] [ 51%] PASSED tests/test_final_50_percent.py::TestLsCommandErrorPaths::test_ls_with_multiple_sort_options \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_buckets \ntests/test_final_50_percent.py::TestGraphCommandErrorPaths::test_graph_with_invalid_format \n[gw5] [ 51%] FAILED tests/test_edge_coverage.py::TestAsciiMode::test_ls_ascii_tree \ntests/test_error_conditions.py::test_invalid_database_path \n[gw2] [ 51%] PASSED tests/test_final_50_percent.py::TestGraphCommandErrorPaths::test_graph_with_invalid_format \ntests/test_final_50_percent.py::TestGraphCommandErrorPaths::test_graph_with_invalid_size \n[gw5] [ 51%] PASSED tests/test_error_conditions.py::test_invalid_database_path \n[gw2] [ 51%] PASSED tests/test_final_50_percent.py::TestGraphCommandErrorPaths::test_graph_with_invalid_size \ntests/test_final_50_percent.py::TestGraphCommandErrorPaths::test_graph_with_dpi \ntests/test_error_conditions.py::test_missing_required_arguments \n[gw6] [ 51%] RERUN tests/test_edge_coverage.py::TestSizeDisplayFormats::test_info_bytes_exact \ntests/test_edge_coverage.py::TestSizeDisplayFormats::test_info_bytes_exact \n[gw5] [ 51%] PASSED tests/test_error_conditions.py::test_missing_required_arguments \n[gw2] [ 52%] PASSED tests/test_final_50_percent.py::TestGraphCommandErrorPaths::test_graph_with_dpi \ntests/test_error_conditions.py::test_conflicting_options \ntests/test_final_50_percent.py::TestGraphCommandErrorPaths::test_graph_with_ring_gap \n[gw7] [ 52%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_monochrome \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_monochrome \n[gw5] [ 52%] PASSED tests/test_error_conditions.py::test_conflicting_options \n[gw2] [ 52%] PASSED tests/test_final_50_percent.py::TestGraphCommandErrorPaths::test_graph_with_ring_gap \ntests/test_error_conditions.py::test_help_for_all_subcommands \ntests/test_final_50_percent.py::TestUiGuiCommandErrorPaths::test_ui_with_all_options \n[gw1] [ 52%] RERUN tests/test_absolutely_50.py::TestFinal::test_info_all_databases \ntests/test_absolutely_50.py::TestFinal::test_info_all_databases \n[gw7] [ 52%] FAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_monochrome \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_classic \n[gw5] [ 52%] PASSED tests/test_error_conditions.py::test_help_for_all_subcommands \ntests/test_extensive_options.py::TestAllCommandsWithInvalidOptions::test_info_with_unknown_short_option \n[gw2] [ 52%] PASSED tests/test_final_50_percent.py::TestUiGuiCommandErrorPaths::test_ui_with_all_options \ntests/test_final_50_percent.py::TestUiGuiCommandErrorPaths::test_gui_with_all_options \n[gw3] [ 52%] RERUN tests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_apparent \ntests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_apparent \n[gw5] [ 52%] PASSED tests/test_extensive_options.py::TestAllCommandsWithInvalidOptions::test_info_with_unknown_short_option \ntests/test_extensive_options.py::TestAllCommandsWithInvalidOptions::test_ls_with_invalid_option_format \n[gw2] [ 52%] PASSED tests/test_final_50_percent.py::TestUiGuiCommandErrorPaths::test_gui_with_all_options \ntests/test_final_50_percent.py::TestUiGuiCommandErrorPaths::test_gui_with_gradient_palette \n[gw5] [ 53%] PASSED tests/test_extensive_options.py::TestAllCommandsWithInvalidOptions::test_ls_with_invalid_option_format \ntests/test_extensive_options.py::TestOptionsWithEmptyValues::test_index_exclude_empty \n[gw2] [ 53%] PASSED tests/test_final_50_percent.py::TestUiGuiCommandErrorPaths::test_gui_with_gradient_palette \ntests/test_final_50_percent.py::TestConfigFileComplexCases::test_config_with_multiple_sections \n[gw5] [ 53%] PASSED tests/test_extensive_options.py::TestOptionsWithEmptyValues::test_index_exclude_empty \ntests/test_extensive_options.py::TestOptionsWithEmptyValues::test_ls_database_empty_via_equals \n[gw2] [ 53%] PASSED tests/test_final_50_percent.py::TestConfigFileComplexCases::test_config_with_multiple_sections \ntests/test_final_50_percent.py::TestConfigFileComplexCases::test_config_with_boolean_values \n[gw2] [ 53%] PASSED tests/test_final_50_percent.py::TestConfigFileComplexCases::test_config_with_boolean_values \n[gw5] [ 53%] PASSED tests/test_extensive_options.py::TestOptionsWithEmptyValues::test_ls_database_empty_via_equals \ntests/test_final_50_percent.py::TestConfigFileComplexCases::test_config_with_numeric_values \ntests/test_extensive_options.py::TestShortAndLongOptionEquivalence::test_help_short_and_long \n[gw2] [ 53%] PASSED tests/test_final_50_percent.py::TestConfigFileComplexCases::test_config_with_numeric_values \n[gw4] [ 53%] RERUN tests/test_final_14_lines.py::TestEvenMoreCombinations::test_ls_directory_recursive \ntests/test_final_14_lines.py::TestEvenMoreCombinations::test_ls_directory_recursive \ntests/test_final_50_percent.py::TestConfigFileComplexCases::test_config_with_string_values \n[gw2] [ 53%] PASSED tests/test_final_50_percent.py::TestConfigFileComplexCases::test_config_with_string_values \n[gw5] [ 54%] PASSED tests/test_extensive_options.py::TestShortAndLongOptionEquivalence::test_help_short_and_long \ntests/test_extensive_options.py::TestShortAndLongOptionEquivalence::test_database_short_and_long \ntests/test_final_50_percent.py::TestDatabaseErrorMessages::test_database_not_found_clear_message \n[gw2] [ 54%] PASSED tests/test_final_50_percent.py::TestDatabaseErrorMessages::test_database_not_found_clear_message \ntests/test_final_50_percent.py::TestDatabaseErrorMessages::test_database_directory_as_database \n[gw5] [ 54%] PASSED tests/test_extensive_options.py::TestShortAndLongOptionEquivalence::test_database_short_and_long \ntests/test_extensive_options.py::TestOptionOrderIndependence::test_global_option_before_command \n[gw2] [ 54%] PASSED tests/test_final_50_percent.py::TestDatabaseErrorMessages::test_database_directory_as_database \ntests/test_final_50_percent.py::TestDatabaseErrorMessages::test_database_empty_path \n[gw5] [ 54%] PASSED tests/test_extensive_options.py::TestOptionOrderIndependence::test_global_option_before_command \n[gw2] [ 54%] PASSED tests/test_final_50_percent.py::TestDatabaseErrorMessages::test_database_empty_path \ntests/test_extensive_options.py::TestOptionOrderIndependence::test_global_option_after_command \ntests/test_final_50_percent.py::TestHelpEdgeCases::test_help_with_invalid_subcommand \n[gw8] [ 54%] RERUN tests/test_edge_coverage.py::TestCountMode::test_ls_count_mode \ntests/test_edge_coverage.py::TestCountMode::test_ls_count_mode \n[gw0] [ 54%] RERUN tests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_xml_min_size_10 \ntests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_xml_min_size_10 \n[gw9] [ 54%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_buckets \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_buckets \n[gw5] [ 54%] PASSED tests/test_extensive_options.py::TestOptionOrderIndependence::test_global_option_after_command \ntests/test_extensive_options.py::TestMultipleOptions::test_ls_with_many_options \n[gw2] [ 54%] PASSED tests/test_final_50_percent.py::TestHelpEdgeCases::test_help_with_invalid_subcommand \ntests/test_final_50_percent.py::TestHelpEdgeCases::test_help_help \n[gw0] [ 54%] FAILED tests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_xml_min_size_10 \n[gw8] [ 54%] FAILED tests/test_edge_coverage.py::TestCountMode::test_ls_count_mode \ntests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_json_min_size_10 \ntests/test_edge_coverage.py::TestCountMode::test_graph_count_mode \n[gw5] [ 55%] PASSED tests/test_extensive_options.py::TestMultipleOptions::test_ls_with_many_options \n[gw2] [ 55%] PASSED tests/test_final_50_percent.py::TestHelpEdgeCases::test_help_help \ntests/test_extensive_options.py::TestMultipleOptions::test_graph_with_all_visual_options \ntests/test_final_50_percent.py::TestHelpEdgeCases::test_subcommand_help_short \n[gw6] [ 55%] RERUN tests/test_edge_coverage.py::TestSizeDisplayFormats::test_info_bytes_exact \ntests/test_edge_coverage.py::TestSizeDisplayFormats::test_info_bytes_exact \n[gw2] [ 55%] PASSED tests/test_final_50_percent.py::TestHelpEdgeCases::test_subcommand_help_short \n[gw5] [ 55%] PASSED tests/test_extensive_options.py::TestMultipleOptions::test_graph_with_all_visual_options \ntests/test_final_50_percent.py::TestHelpEdgeCases::test_subcommand_help_long \ntests/test_extensive_options.py::TestMultipleOptions::test_cgi_with_multiple_customizations \n[gw8] [ 55%] PASSED tests/test_edge_coverage.py::TestCountMode::test_graph_count_mode \ntests/test_edge_coverage.py::TestCountMode::test_cgi_count_mode \n[gw8] [ 55%] PASSED tests/test_edge_coverage.py::TestCountMode::test_cgi_count_mode \ntests/test_edge_coverage.py::TestApparentVsActualSize::test_info_apparent_vs_actual \n[gw6] [ 55%] FAILED tests/test_edge_coverage.py::TestSizeDisplayFormats::test_info_bytes_exact \n[gw5] [ 55%] PASSED tests/test_extensive_options.py::TestMultipleOptions::test_cgi_with_multiple_customizations \ntests/test_edge_coverage.py::TestColorOutput::test_ls_color_with_tty \ntests/test_final_50_percent.py::TestVerbosityFlagsBehavior::test_multiple_verbose_flags \n[gw2] [ 55%] PASSED tests/test_final_50_percent.py::TestHelpEdgeCases::test_subcommand_help_long \ntests/test_final_50_percent.py::TestOptionParsing::test_option_with_equals_sign \n[gw1] [ 55%] RERUN tests/test_absolutely_50.py::TestFinal::test_info_all_databases \ntests/test_absolutely_50.py::TestFinal::test_info_all_databases \n[gw7] [ 55%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_classic \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_classic \n[gw5] [ 56%] PASSED tests/test_final_50_percent.py::TestVerbosityFlagsBehavior::test_multiple_verbose_flags \ntests/test_final_50_percent.py::TestVerbosityFlagsBehavior::test_debug_overrides_verbose \n[gw2] [ 56%] PASSED tests/test_final_50_percent.py::TestOptionParsing::test_option_with_equals_sign \ntests/test_final_50_percent.py::TestOptionParsing::test_option_with_space \n[gw1] [ 56%] FAILED tests/test_absolutely_50.py::TestFinal::test_info_all_databases \ntests/test_additional_coverage.py::test_help_all_detailed \n[gw3] [ 56%] RERUN tests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_apparent \ntests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_apparent \n[gw5] [ 56%] PASSED tests/test_final_50_percent.py::TestVerbosityFlagsBehavior::test_debug_overrides_verbose \ntests/test_final_50_percent.py::TestVerbosityFlagsBehavior::test_quiet_suppresses_output \n[gw2] [ 56%] PASSED tests/test_final_50_percent.py::TestOptionParsing::test_option_with_space \ntests/test_final_50_percent.py::TestOptionParsing::test_short_option_with_equals \n[gw1] [ 56%] PASSED tests/test_additional_coverage.py::test_help_all_detailed \ntests/test_additional_coverage.py::test_multiple_help_invocations \n[gw3] [ 56%] FAILED tests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_apparent \ntests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_bytes \n[gw5] [ 56%] PASSED tests/test_final_50_percent.py::TestVerbosityFlagsBehavior::test_quiet_suppresses_output \ntests/test_final_50_percent.py::TestVerbosityFlagsBehavior::test_quiet_with_verbose \n[gw2] [ 56%] PASSED tests/test_final_50_percent.py::TestOptionParsing::test_short_option_with_equals \ntests/test_final_50_percent.py::TestOptionParsing::test_short_option_with_space \n[gw5] [ 56%] PASSED tests/test_final_50_percent.py::TestVerbosityFlagsBehavior::test_quiet_with_verbose \ntests/test_final_50_percent.py::TestPathHandling::test_index_with_relative_path \n[gw2] [ 56%] PASSED tests/test_final_50_percent.py::TestOptionParsing::test_short_option_with_space \ntests/test_final_50_percent.py::TestSubcommandExistence::test_all_subcommands_in_main_help \n[gw5] [ 57%] PASSED tests/test_final_50_percent.py::TestPathHandling::test_index_with_relative_path \ntests/test_final_50_percent.py::TestPathHandling::test_ls_with_root_path \n[gw2] [ 57%] PASSED tests/test_final_50_percent.py::TestSubcommandExistence::test_all_subcommands_in_main_help \ntests/test_final_50_percent.py::TestSubcommandExistence::test_each_subcommand_has_help \n[gw5] [ 57%] PASSED tests/test_final_50_percent.py::TestPathHandling::test_ls_with_root_path \ntests/test_final_50_percent.py::TestPathHandling::test_json_with_path \n[gw4] [ 57%] RERUN tests/test_final_14_lines.py::TestEvenMoreCombinations::test_ls_directory_recursive \ntests/test_final_14_lines.py::TestEvenMoreCombinations::test_ls_directory_recursive \n[gw5] [ 57%] PASSED tests/test_final_50_percent.py::TestPathHandling::test_json_with_path \ntests/test_final_50_percent.py::TestPathHandling::test_xml_with_path \n[gw4] [ 57%] FAILED tests/test_final_14_lines.py::TestEvenMoreCombinations::test_ls_directory_recursive \ntests/test_final_14_lines.py::TestEvenMoreCombinations::test_xml_all_subdirs \n[gw5] [ 57%] PASSED tests/test_final_50_percent.py::TestPathHandling::test_xml_with_path \ntests/test_final_50_percent.py::TestOutputFormatting::test_bytes_option_documented \n[gw9] [ 57%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_buckets \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_buckets \n[gw9] [ 57%] FAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_buckets \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_topn \n[gw0] [ 57%] RERUN tests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_json_min_size_10 \ntests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_json_min_size_10 \n[gw1] [ 57%] PASSED tests/test_additional_coverage.py::test_multiple_help_invocations \ntests/test_additional_coverage.py::test_version_output_format_detailed \n[gw1] [ 57%] PASSED tests/test_additional_coverage.py::test_version_output_format_detailed \ntests/test_additional_coverage.py::test_database_path_variations \n[gw5] [ 57%] PASSED tests/test_final_50_percent.py::TestOutputFormatting::test_bytes_option_documented \ntests/test_final_50_percent.py::TestOutputFormatting::test_apparent_option_documented \n[gw6] [ 58%] RERUN tests/test_edge_coverage.py::TestColorOutput::test_ls_color_with_tty \ntests/test_edge_coverage.py::TestColorOutput::test_ls_color_with_tty \n[gw7] [ 58%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_classic \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_classic \n[gw8] [ 58%] RERUN tests/test_edge_coverage.py::TestApparentVsActualSize::test_info_apparent_vs_actual \ntests/test_edge_coverage.py::TestApparentVsActualSize::test_info_apparent_vs_actual \n[gw7] [ 58%] FAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_classic \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_output_formats \n[gw1] [ 58%] PASSED tests/test_additional_coverage.py::test_database_path_variations \ntests/test_additional_coverage.py::test_graph_output_path_variations \n[gw3] [ 58%] RERUN tests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_bytes \ntests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_bytes \n[gw2] [ 58%] PASSED tests/test_final_50_percent.py::TestSubcommandExistence::test_each_subcommand_has_help \ntests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_recursive \n[gw1] [ 58%] PASSED tests/test_additional_coverage.py::test_graph_output_path_variations \ntests/test_additional_coverage.py::test_index_multiple_options \n[gw1] [ 58%] PASSED tests/test_additional_coverage.py::test_index_multiple_options \ntests/test_additional_coverage.py::test_ls_multiple_options_combined \n[gw1] [ 58%] PASSED tests/test_additional_coverage.py::test_ls_multiple_options_combined \ntests/test_additional_coverage.py::test_graph_all_options_combined \n[gw1] [ 58%] PASSED tests/test_additional_coverage.py::test_graph_all_options_combined \ntests/test_additional_coverage.py::test_cgi_all_options_combined \n[gw4] [ 59%] RERUN tests/test_final_14_lines.py::TestEvenMoreCombinations::test_xml_all_subdirs \ntests/test_final_14_lines.py::TestEvenMoreCombinations::test_xml_all_subdirs \n[gw1] [ 59%] PASSED tests/test_additional_coverage.py::test_cgi_all_options_combined \ntests/test_additional_coverage.py::test_ui_all_options_combined \n[gw5] [ 59%] PASSED tests/test_final_50_percent.py::TestOutputFormatting::test_apparent_option_documented \ntests/test_final_50_percent.py::TestOutputFormatting::test_count_option_documented \n[gw1] [ 59%] PASSED tests/test_additional_coverage.py::test_ui_all_options_combined \ntests/test_additional_coverage.py::test_gui_all_options_combined \n[gw1] [ 59%] PASSED tests/test_additional_coverage.py::test_gui_all_options_combined \ntests/test_additional_coverage.py::test_xml_all_options_combined \n[gw1] [ 59%] PASSED tests/test_additional_coverage.py::test_xml_all_options_combined \ntests/test_additional_coverage.py::test_json_all_options_combined \n[gw9] [ 59%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_topn \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_topn \n[gw1] [ 59%] PASSED tests/test_additional_coverage.py::test_json_all_options_combined \ntests/test_final_coverage_push.py::TestCgiMode::test_cgi_with_levels \n[gw0] [ 59%] RERUN tests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_json_min_size_10 \ntests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_json_min_size_10 \n[gw5] [ 59%] PASSED tests/test_final_50_percent.py::TestOutputFormatting::test_count_option_documented \ntests/test_final_coverage_push.py::TestGraphOutputFormats::test_graph_with_fuzz \n[gw1] [ 60%] PASSED tests/test_final_coverage_push.py::TestCgiMode::test_cgi_with_levels \ntests/test_final_coverage_push.py::TestCommandPathArguments::test_ls_nonexistent_path \n[gw0] [ 60%] FAILED tests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_json_min_size_10 \ntests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_xml_min_size_100 \n[gw5] [ 60%] PASSED tests/test_final_coverage_push.py::TestGraphOutputFormats::test_graph_with_fuzz \ntests/test_final_coverage_push.py::TestGraphOutputFormats::test_graph_with_ring_gap \n[gw1] [ 60%] PASSED tests/test_final_coverage_push.py::TestCommandPathArguments::test_ls_nonexistent_path \ntests/test_final_coverage_push.py::TestCommandPathArguments::test_xml_nonexistent_path \n[gw5] [ 60%] PASSED tests/test_final_coverage_push.py::TestGraphOutputFormats::test_graph_with_ring_gap \ntests/test_final_coverage_push.py::TestGraphOutputFormats::test_graph_stdout_output \n[gw1] [ 60%] PASSED tests/test_final_coverage_push.py::TestCommandPathArguments::test_xml_nonexistent_path \ntests/test_final_coverage_push.py::TestCommandPathArguments::test_json_nonexistent_path \n[gw6] [ 60%] RERUN tests/test_edge_coverage.py::TestColorOutput::test_ls_color_with_tty \ntests/test_edge_coverage.py::TestColorOutput::test_ls_color_with_tty \n[gw5] [ 60%] PASSED tests/test_final_coverage_push.py::TestGraphOutputFormats::test_graph_stdout_output \ntests/test_final_coverage_push.py::TestCgiMode::test_cgi_with_bytes \n[gw1] [ 60%] PASSED tests/test_final_coverage_push.py::TestCommandPathArguments::test_json_nonexistent_path \ntests/test_final_coverage_push.py::TestCommandPathArguments::test_graph_nonexistent_path \n[gw7] [ 60%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_output_formats \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_output_formats \n[gw8] [ 60%] RERUN tests/test_edge_coverage.py::TestApparentVsActualSize::test_info_apparent_vs_actual \ntests/test_edge_coverage.py::TestApparentVsActualSize::test_info_apparent_vs_actual \n[gw3] [ 60%] RERUN tests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_bytes \ntests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_bytes \n[gw6] [ 60%] FAILED tests/test_edge_coverage.py::TestColorOutput::test_ls_color_with_tty \ntests/test_edge_coverage.py::TestColorOutput::test_ui_no_color \n[gw5] [ 60%] PASSED tests/test_final_coverage_push.py::TestCgiMode::test_cgi_with_bytes \ntests/test_final_coverage_push.py::TestCgiMode::test_cgi_with_count \n[gw1] [ 61%] PASSED tests/test_final_coverage_push.py::TestCommandPathArguments::test_graph_nonexistent_path \ntests/test_final_coverage_push.py::TestMultipleOptionCombinations::test_ls_all_display_options \n[gw3] [ 61%] FAILED tests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_bytes \ntests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_histogram \n[gw2] [ 61%] RERUN tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_recursive \ntests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_recursive \n[gw6] [ 61%] PASSED tests/test_edge_coverage.py::TestColorOutput::test_ui_no_color \ntests/test_edge_coverage.py::TestGraphPalettes::test_graph_palette_greyscale \n[gw5] [ 61%] PASSED tests/test_final_coverage_push.py::TestCgiMode::test_cgi_with_count \ntests/test_final_coverage_push.py::TestCgiMode::test_cgi_with_gradient \n[gw6] [ 61%] PASSED tests/test_edge_coverage.py::TestGraphPalettes::test_graph_palette_greyscale \ntests/test_edge_coverage.py::TestGraphPalettes::test_graph_palette_size \n[gw8] [ 61%] FAILED tests/test_edge_coverage.py::TestApparentVsActualSize::test_info_apparent_vs_actual \ntests/test_edge_coverage.py::TestApparentVsActualSize::test_ls_apparent_size \n[gw5] [ 61%] PASSED tests/test_final_coverage_push.py::TestCgiMode::test_cgi_with_gradient \ntests/test_final_coverage_push.py::TestCgiMode::test_cgi_with_palette \n[gw6] [ 61%] PASSED tests/test_edge_coverage.py::TestGraphPalettes::test_graph_palette_size \ntests/test_edge_coverage.py::TestMinSizeFiltering::test_xml_min_size_large \n[gw5] [ 61%] PASSED tests/test_final_coverage_push.py::TestCgiMode::test_cgi_with_palette \ntests/test_final_coverage_push.py::TestCgiMode::test_cgi_with_size \n[gw5] [ 61%] PASSED tests/test_final_coverage_push.py::TestCgiMode::test_cgi_with_size \ntests/test_final_coverage_push.py::TestDatabasePaths::test_database_with_equals \n[gw4] [ 61%] RERUN tests/test_final_14_lines.py::TestEvenMoreCombinations::test_xml_all_subdirs \ntests/test_final_14_lines.py::TestEvenMoreCombinations::test_xml_all_subdirs \n[gw4] [ 61%] FAILED tests/test_final_14_lines.py::TestEvenMoreCombinations::test_xml_all_subdirs \ntests/test_final_14_lines.py::TestEvenMoreCombinations::test_json_all_subdirs \n[gw9] [ 61%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_topn \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_topn \n[gw9] [ 61%] FAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_topn \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_topn_min \n[gw0] [ 62%] RERUN tests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_xml_min_size_100 \ntests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_xml_min_size_100 \n[gw7] [ 62%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_output_formats \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_output_formats \n[gw7] [ 62%] FAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_output_formats \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_size_option \n[gw1] [ 62%] RERUN tests/test_final_coverage_push.py::TestMultipleOptionCombinations::test_ls_all_display_options \ntests/test_final_coverage_push.py::TestMultipleOptionCombinations::test_ls_all_display_options \n[gw3] [ 62%] RERUN tests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_histogram \ntests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_histogram \n[gw2] [ 62%] RERUN tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_recursive \ntests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_recursive \n[gw2] [ 62%] FAILED tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_recursive \ntests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_with_levels \n[gw8] [ 62%] RERUN tests/test_edge_coverage.py::TestApparentVsActualSize::test_ls_apparent_size \ntests/test_edge_coverage.py::TestApparentVsActualSize::test_ls_apparent_size \n[gw6] [ 62%] RERUN tests/test_edge_coverage.py::TestMinSizeFiltering::test_xml_min_size_large \ntests/test_edge_coverage.py::TestMinSizeFiltering::test_xml_min_size_large \n[gw5] [ 62%] RERUN tests/test_final_coverage_push.py::TestDatabasePaths::test_database_with_equals \ntests/test_final_coverage_push.py::TestDatabasePaths::test_database_with_equals \n[gw4] [ 62%] RERUN tests/test_final_14_lines.py::TestEvenMoreCombinations::test_json_all_subdirs \ntests/test_final_14_lines.py::TestEvenMoreCombinations::test_json_all_subdirs \n[gw9] [ 62%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_topn_min \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_topn_min \n[gw0] [ 62%] RERUN tests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_xml_min_size_100 \ntests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_xml_min_size_100 \n[gw0] [ 62%] FAILED tests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_xml_min_size_100 \ntests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_json_min_size_100 \n[gw7] [ 62%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_size_option \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_size_option \n[gw3] [ 62%] RERUN tests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_histogram \ntests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_histogram \n[gw1] [ 62%] RERUN tests/test_final_coverage_push.py::TestMultipleOptionCombinations::test_ls_all_display_options \ntests/test_final_coverage_push.py::TestMultipleOptionCombinations::test_ls_all_display_options \n[gw3] [ 62%] FAILED tests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_histogram \ntests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_short_options \n[gw1] [ 62%] FAILED tests/test_final_coverage_push.py::TestMultipleOptionCombinations::test_ls_all_display_options \ntests/test_final_coverage_push.py::TestMultipleOptionCombinations::test_info_all_options \n[gw8] [ 62%] RERUN tests/test_edge_coverage.py::TestApparentVsActualSize::test_ls_apparent_size \ntests/test_edge_coverage.py::TestApparentVsActualSize::test_ls_apparent_size \n[gw2] [ 63%] RERUN tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_with_levels \ntests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_with_levels \n[gw6] [ 63%] RERUN tests/test_edge_coverage.py::TestMinSizeFiltering::test_xml_min_size_large \ntests/test_edge_coverage.py::TestMinSizeFiltering::test_xml_min_size_large \n[gw8] [ 63%] FAILED tests/test_edge_coverage.py::TestApparentVsActualSize::test_ls_apparent_size \ntests/test_edge_coverage.py::TestApparentVsActualSize::test_histogram_apparent_size \n[gw5] [ 63%] RERUN tests/test_final_coverage_push.py::TestDatabasePaths::test_database_with_equals \ntests/test_final_coverage_push.py::TestDatabasePaths::test_database_with_equals \n[gw6] [ 63%] FAILED tests/test_edge_coverage.py::TestMinSizeFiltering::test_xml_min_size_large \ntests/test_error_conditions.py::test_version_information_complete \n[gw5] [ 63%] FAILED tests/test_final_coverage_push.py::TestDatabasePaths::test_database_with_equals \ntests/test_final_coverage_push.py::TestDatabasePaths::test_database_short_with_space \n[gw6] [ 63%] PASSED tests/test_error_conditions.py::test_version_information_complete \ntests/test_error_conditions.py::test_quiet_mode_reduces_output \n[gw4] [ 63%] RERUN tests/test_final_14_lines.py::TestEvenMoreCombinations::test_json_all_subdirs \ntests/test_final_14_lines.py::TestEvenMoreCombinations::test_json_all_subdirs \n[gw6] [ 63%] PASSED tests/test_error_conditions.py::test_quiet_mode_reduces_output \ntests/test_error_conditions.py::test_verbose_mode_works \n[gw4] [ 63%] FAILED tests/test_final_14_lines.py::TestEvenMoreCombinations::test_json_all_subdirs \ntests/test_final_14_lines.py::TestEvenMoreCombinations::test_ls_levels_0_through_5 \n[gw6] [ 63%] PASSED tests/test_error_conditions.py::test_verbose_mode_works \ntests/test_error_conditions.py::test_debug_mode_works \n[gw6] [ 63%] PASSED tests/test_error_conditions.py::test_debug_mode_works \ntests/test_error_conditions.py::test_database_option_recognized \n[gw9] [ 63%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_topn_min \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_topn_min \n[gw6] [ 63%] PASSED tests/test_error_conditions.py::test_database_option_recognized \ntests/test_error_conditions.py::test_bytes_option_recognized \n[gw9] [ 63%] FAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_topn_min \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_uid \n[gw6] [ 63%] PASSED tests/test_error_conditions.py::test_bytes_option_recognized \ntests/test_error_conditions.py::test_apparent_option_recognized \n[gw6] [ 63%] PASSED tests/test_error_conditions.py::test_apparent_option_recognized \ntests/test_exactly_50_percent.py::TestExactly50::test_ls_recursive_all_levels_all_paths \n[gw0] [ 63%] RERUN tests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_json_min_size_100 \ntests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_json_min_size_100 \n[gw7] [ 63%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_size_option \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_size_option \n[gw7] [ 63%] FAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_size_option \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_levels_option \n[gw3] [ 64%] RERUN tests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_short_options \ntests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_short_options \n[gw1] [ 64%] RERUN tests/test_final_coverage_push.py::TestMultipleOptionCombinations::test_info_all_options \ntests/test_final_coverage_push.py::TestMultipleOptionCombinations::test_info_all_options \n[gw2] [ 64%] RERUN tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_with_levels \ntests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_with_levels \n[gw8] [ 64%] RERUN tests/test_edge_coverage.py::TestApparentVsActualSize::test_histogram_apparent_size \ntests/test_edge_coverage.py::TestApparentVsActualSize::test_histogram_apparent_size \n[gw2] [ 64%] FAILED tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_with_levels \ntests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_with_levels_2 \n[gw5] [ 64%] RERUN tests/test_final_coverage_push.py::TestDatabasePaths::test_database_short_with_space \ntests/test_final_coverage_push.py::TestDatabasePaths::test_database_short_with_space \n[gw4] [ 64%] RERUN tests/test_final_14_lines.py::TestEvenMoreCombinations::test_ls_levels_0_through_5 \ntests/test_final_14_lines.py::TestEvenMoreCombinations::test_ls_levels_0_through_5 \n[gw9] [ 64%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_uid \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_uid \n[gw6] [ 64%] RERUN tests/test_exactly_50_percent.py::TestExactly50::test_ls_recursive_all_levels_all_paths \ntests/test_exactly_50_percent.py::TestExactly50::test_ls_recursive_all_levels_all_paths \n[gw0] [ 64%] RERUN tests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_json_min_size_100 \ntests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_json_min_size_100 \n[gw0] [ 64%] FAILED tests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_json_min_size_100 \ntests/test_50_percent.py::TestTopnVariations::test_topn_bytes_flag \n[gw0] [ 64%] PASSED tests/test_50_percent.py::TestTopnVariations::test_topn_bytes_flag \ntests/test_50_percent.py::TestTopnVariations::test_topn_no_args \n[gw7] [ 64%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_levels_option \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_levels_option \n[gw3] [ 64%] RERUN tests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_short_options \ntests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_short_options \n[gw0] [ 65%] PASSED tests/test_50_percent.py::TestTopnVariations::test_topn_no_args \ntests/test_50_percent.py::TestHistogramAllCombinations::test_histogram_all_flags \n[gw3] [ 65%] FAILED tests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_short_options \ntests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_apparent \n[gw1] [ 65%] RERUN tests/test_final_coverage_push.py::TestMultipleOptionCombinations::test_info_all_options \ntests/test_final_coverage_push.py::TestMultipleOptionCombinations::test_info_all_options \n[gw1] [ 65%] FAILED tests/test_final_coverage_push.py::TestMultipleOptionCombinations::test_info_all_options \ntests/test_final_coverage_push.py::TestMultipleOptionCombinations::test_graph_all_appearance_options \n[gw8] [ 65%] RERUN tests/test_edge_coverage.py::TestApparentVsActualSize::test_histogram_apparent_size \ntests/test_edge_coverage.py::TestApparentVsActualSize::test_histogram_apparent_size \n[gw2] [ 65%] RERUN tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_with_levels_2 \ntests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_with_levels_2 \n[gw1] [ 65%] PASSED tests/test_final_coverage_push.py::TestMultipleOptionCombinations::test_graph_all_appearance_options \ntests/test_final_coverage_push.py::TestVerboseDebugOutput::test_info_with_verbose \n[gw8] [ 65%] FAILED tests/test_edge_coverage.py::TestApparentVsActualSize::test_histogram_apparent_size \ntests/test_edge_coverage.py::TestGraphSizes::test_graph_size_100 \n[gw5] [ 65%] RERUN tests/test_final_coverage_push.py::TestDatabasePaths::test_database_short_with_space \ntests/test_final_coverage_push.py::TestDatabasePaths::test_database_short_with_space \n[gw8] [ 65%] PASSED tests/test_edge_coverage.py::TestGraphSizes::test_graph_size_100 \ntests/test_edge_coverage.py::TestGraphSizes::test_graph_size_1200 \n[gw8] [ 65%] PASSED tests/test_edge_coverage.py::TestGraphSizes::test_graph_size_1200 \n[gw5] [ 65%] FAILED tests/test_final_coverage_push.py::TestDatabasePaths::test_database_short_with_space \ntests/test_edge_coverage.py::TestClassifyOption::test_ls_classify_shows_indicators \ntests/test_final_push.py::TestLsEdgeCases::test_ls_directory_flag \n[gw4] [ 65%] RERUN tests/test_final_14_lines.py::TestEvenMoreCombinations::test_ls_levels_0_through_5 \ntests/test_final_14_lines.py::TestEvenMoreCombinations::test_ls_levels_0_through_5 \n[gw4] [ 65%] FAILED tests/test_final_14_lines.py::TestEvenMoreCombinations::test_ls_levels_0_through_5 \ntests/test_final_50_percent.py::TestGraphCommandErrorPaths::test_graph_with_fuzz \n[gw4] [ 65%] PASSED tests/test_final_50_percent.py::TestGraphCommandErrorPaths::test_graph_with_fuzz \ntests/test_final_50_percent.py::TestJsonXmlCommandErrorPaths::test_json_with_min_size \n[gw4] [ 65%] PASSED tests/test_final_50_percent.py::TestJsonXmlCommandErrorPaths::test_json_with_min_size \ntests/test_final_50_percent.py::TestJsonXmlCommandErrorPaths::test_json_with_exclude_files \n[gw9] [ 65%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_uid \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_uid \n[gw4] [ 65%] PASSED tests/test_final_50_percent.py::TestJsonXmlCommandErrorPaths::test_json_with_exclude_files \ntests/test_final_50_percent.py::TestJsonXmlCommandErrorPaths::test_xml_with_min_size \n[gw9] [ 65%] FAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_uid \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_username \n[gw6] [ 65%] RERUN tests/test_exactly_50_percent.py::TestExactly50::test_ls_recursive_all_levels_all_paths \ntests/test_exactly_50_percent.py::TestExactly50::test_ls_recursive_all_levels_all_paths \n[gw4] [ 65%] PASSED tests/test_final_50_percent.py::TestJsonXmlCommandErrorPaths::test_xml_with_min_size \ntests/test_final_50_percent.py::TestJsonXmlCommandErrorPaths::test_xml_with_exclude_files \n[gw6] [ 65%] FAILED tests/test_exactly_50_percent.py::TestExactly50::test_ls_recursive_all_levels_all_paths \ntests/test_exactly_50_percent.py::TestExactly50::test_graph_all_size_level_combinations \n[gw4] [ 66%] PASSED tests/test_final_50_percent.py::TestJsonXmlCommandErrorPaths::test_xml_with_exclude_files \ntests/test_final_50_percent.py::TestCgiCommandErrorPaths::test_cgi_with_all_options \n[gw4] [ 66%] PASSED tests/test_final_50_percent.py::TestCgiCommandErrorPaths::test_cgi_with_all_options \ntests/test_final_50_percent.py::TestCgiCommandErrorPaths::test_cgi_with_header_footer \n[gw7] [ 66%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_levels_option \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_levels_option \n[gw4] [ 66%] PASSED tests/test_final_50_percent.py::TestCgiCommandErrorPaths::test_cgi_with_header_footer \ntests/test_final_50_percent.py::TestCgiCommandErrorPaths::test_cgi_with_tooltip \n[gw7] [ 66%] FAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_levels_option \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_ring_gap \n[gw3] [ 66%] RERUN tests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_apparent \ntests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_apparent \n[gw0] [ 66%] RERUN tests/test_50_percent.py::TestHistogramAllCombinations::test_histogram_all_flags \ntests/test_50_percent.py::TestHistogramAllCombinations::test_histogram_all_flags \n[gw4] [ 66%] PASSED tests/test_final_50_percent.py::TestCgiCommandErrorPaths::test_cgi_with_tooltip \ntests/test_final_50_percent.py::TestCgiCommandErrorPaths::test_cgi_with_list \n[gw4] [ 66%] PASSED tests/test_final_50_percent.py::TestCgiCommandErrorPaths::test_cgi_with_list \ntests/test_final_push.py::TestInfoHistogram::test_info_histogram_display \n[gw2] [ 66%] RERUN tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_with_levels_2 \ntests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_with_levels_2 \n[gw1] [ 66%] RERUN tests/test_final_coverage_push.py::TestVerboseDebugOutput::test_info_with_verbose \ntests/test_final_coverage_push.py::TestVerboseDebugOutput::test_info_with_verbose \n[gw2] [ 66%] FAILED tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_with_levels_2 \ntests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_color \n[gw8] [ 66%] RERUN tests/test_edge_coverage.py::TestClassifyOption::test_ls_classify_shows_indicators \ntests/test_edge_coverage.py::TestClassifyOption::test_ls_classify_shows_indicators \n[gw5] [ 67%] RERUN tests/test_final_push.py::TestLsEdgeCases::test_ls_directory_flag \ntests/test_final_push.py::TestLsEdgeCases::test_ls_directory_flag \n[gw6] [ 67%] PASSED tests/test_exactly_50_percent.py::TestExactly50::test_graph_all_size_level_combinations \ntests/test_exactly_50_percent.py::TestExactly50::test_cgi_all_combinations \n[gw6] [ 67%] PASSED tests/test_exactly_50_percent.py::TestExactly50::test_cgi_all_combinations \ntests/test_extensive_options.py::TestAllCommandsWithInvalidOptions::test_index_with_unknown_option \n[gw6] [ 67%] PASSED tests/test_extensive_options.py::TestAllCommandsWithInvalidOptions::test_index_with_unknown_option \ntests/test_final_push.py::TestXmlJsonEdgeCases::test_json_deep_path \n[gw9] [ 67%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_username \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_username \n[gw7] [ 67%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_ring_gap \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_ring_gap \n[gw3] [ 67%] RERUN tests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_apparent \ntests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_apparent \n[gw0] [ 67%] RERUN tests/test_50_percent.py::TestHistogramAllCombinations::test_histogram_all_flags \ntests/test_50_percent.py::TestHistogramAllCombinations::test_histogram_all_flags \n[gw3] [ 67%] FAILED tests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_apparent \ntests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_bytes \n[gw0] [ 67%] FAILED tests/test_50_percent.py::TestHistogramAllCombinations::test_histogram_all_flags \ntests/test_50_percent.py::TestInfoAllCombinations::test_info_all_flags \n[gw4] [ 67%] RERUN tests/test_final_push.py::TestInfoHistogram::test_info_histogram_display \ntests/test_final_push.py::TestInfoHistogram::test_info_histogram_display \n[gw1] [ 67%] RERUN tests/test_final_coverage_push.py::TestVerboseDebugOutput::test_info_with_verbose \ntests/test_final_coverage_push.py::TestVerboseDebugOutput::test_info_with_verbose \n[gw2] [ 67%] RERUN tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_color \ntests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_color \n[gw1] [ 67%] FAILED tests/test_final_coverage_push.py::TestVerboseDebugOutput::test_info_with_verbose \ntests/test_final_coverage_push.py::TestVerboseDebugOutput::test_ls_with_verbose \n[gw8] [ 67%] RERUN tests/test_edge_coverage.py::TestClassifyOption::test_ls_classify_shows_indicators \ntests/test_edge_coverage.py::TestClassifyOption::test_ls_classify_shows_indicators \n[gw5] [ 67%] RERUN tests/test_final_push.py::TestLsEdgeCases::test_ls_directory_flag \ntests/test_final_push.py::TestLsEdgeCases::test_ls_directory_flag \n[gw8] [ 67%] FAILED tests/test_edge_coverage.py::TestClassifyOption::test_ls_classify_shows_indicators \ntests/test_final_coverage_push.py::TestXmlJsonRobustness::test_json_root_path \n[gw5] [ 67%] FAILED tests/test_final_push.py::TestLsEdgeCases::test_ls_directory_flag \ntests/test_final_push.py::TestLsEdgeCases::test_ls_recursive_levels_max \n[gw6] [ 67%] RERUN tests/test_final_push.py::TestXmlJsonEdgeCases::test_json_deep_path \ntests/test_final_push.py::TestXmlJsonEdgeCases::test_json_deep_path \n[gw9] [ 67%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_username \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_username \n[gw9] [ 67%] FAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_username \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_fs_exclude \n[gw7] [ 67%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_ring_gap \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_ring_gap \n[gw7] [ 67%] FAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_ring_gap \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_fuzz \n[gw3] [ 68%] RERUN tests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_bytes \ntests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_bytes \n[gw0] [ 68%] RERUN tests/test_50_percent.py::TestInfoAllCombinations::test_info_all_flags \ntests/test_50_percent.py::TestInfoAllCombinations::test_info_all_flags \n[gw4] [ 68%] RERUN tests/test_final_push.py::TestInfoHistogram::test_info_histogram_display \ntests/test_final_push.py::TestInfoHistogram::test_info_histogram_display \n[gw4] [ 68%] FAILED tests/test_final_push.py::TestInfoHistogram::test_info_histogram_display \ntests/test_final_push.py::TestLsFullPathRecursive::test_ls_full_path_recursive_nested \n[gw2] [ 68%] RERUN tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_color \ntests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_color \n[gw1] [ 68%] RERUN tests/test_final_coverage_push.py::TestVerboseDebugOutput::test_ls_with_verbose \ntests/test_final_coverage_push.py::TestVerboseDebugOutput::test_ls_with_verbose \n[gw2] [ 68%] FAILED tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_color \ntests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_dirs_only \n[gw5] [ 68%] RERUN tests/test_final_push.py::TestLsEdgeCases::test_ls_recursive_levels_max \ntests/test_final_push.py::TestLsEdgeCases::test_ls_recursive_levels_max \n[gw8] [ 68%] RERUN tests/test_final_coverage_push.py::TestXmlJsonRobustness::test_json_root_path \ntests/test_final_coverage_push.py::TestXmlJsonRobustness::test_json_root_path \n[gw6] [ 68%] RERUN tests/test_final_push.py::TestXmlJsonEdgeCases::test_json_deep_path \ntests/test_final_push.py::TestXmlJsonEdgeCases::test_json_deep_path \n[gw6] [ 68%] FAILED tests/test_final_push.py::TestXmlJsonEdgeCases::test_json_deep_path \ntests/test_final_push.py::TestXmlJsonEdgeCases::test_xml_apparent_exclude_min \n[gw9] [ 68%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_fs_exclude \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_fs_exclude \n[gw7] [ 68%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_fuzz \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_fuzz \n[gw3] [ 68%] RERUN tests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_bytes \ntests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_bytes \n[gw0] [ 68%] RERUN tests/test_50_percent.py::TestInfoAllCombinations::test_info_all_flags \ntests/test_50_percent.py::TestInfoAllCombinations::test_info_all_flags \n[gw3] [ 68%] FAILED tests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_bytes \ntests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_base10 \n[gw0] [ 68%] FAILED tests/test_50_percent.py::TestInfoAllCombinations::test_info_all_flags \ntests/test_50_percent.py::TestGraphDpiVariations::test_graph_dpi_300 \n[gw4] [ 68%] RERUN tests/test_final_push.py::TestLsFullPathRecursive::test_ls_full_path_recursive_nested \ntests/test_final_push.py::TestLsFullPathRecursive::test_ls_full_path_recursive_nested \n[gw0] [ 68%] PASSED tests/test_50_percent.py::TestGraphDpiVariations::test_graph_dpi_300 \ntests/test_50_percent.py::TestGraphDpiVariations::test_graph_dpi_72 \n[gw1] [ 68%] RERUN tests/test_final_coverage_push.py::TestVerboseDebugOutput::test_ls_with_verbose \ntests/test_final_coverage_push.py::TestVerboseDebugOutput::test_ls_with_verbose \n[gw2] [ 69%] RERUN tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_dirs_only \ntests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_dirs_only \n[gw0] [ 69%] PASSED tests/test_50_percent.py::TestGraphDpiVariations::test_graph_dpi_72 \ntests/test_50_percent.py::TestGraphFuzzVariations::test_graph_fuzz_0 \n[gw1] [ 69%] FAILED tests/test_final_coverage_push.py::TestVerboseDebugOutput::test_ls_with_verbose \ntests/test_final_coverage_push.py::TestVerboseDebugOutput::test_histogram_with_debug \n[gw8] [ 69%] RERUN tests/test_final_coverage_push.py::TestXmlJsonRobustness::test_json_root_path \ntests/test_final_coverage_push.py::TestXmlJsonRobustness::test_json_root_path \n[gw5] [ 69%] RERUN tests/test_final_push.py::TestLsEdgeCases::test_ls_recursive_levels_max \ntests/test_final_push.py::TestLsEdgeCases::test_ls_recursive_levels_max \n[gw0] [ 69%] PASSED tests/test_50_percent.py::TestGraphFuzzVariations::test_graph_fuzz_0 \ntests/test_50_percent.py::TestGraphFuzzVariations::test_graph_fuzz_1 \n[gw8] [ 69%] FAILED tests/test_final_coverage_push.py::TestXmlJsonRobustness::test_json_root_path \n[gw5] [ 69%] FAILED tests/test_final_push.py::TestLsEdgeCases::test_ls_recursive_levels_max \ntests/test_final_coverage_push.py::TestXmlJsonRobustness::test_xml_apparent_and_min_size \ntests/test_final_push.py::TestGraphEdgeCases::test_graph_minimum_size \n[gw0] [ 69%] PASSED tests/test_50_percent.py::TestGraphFuzzVariations::test_graph_fuzz_1 \ntests/test_final_push_50.py::TestFinalCoveragePush::test_histogram_all_options \n[gw0] [ 69%] PASSED tests/test_final_push_50.py::TestFinalCoveragePush::test_histogram_all_options \n[gw5] [ 69%] PASSED tests/test_final_push.py::TestGraphEdgeCases::test_graph_minimum_size \ntests/test_final_push.py::TestGraphEdgeCases::test_graph_levels_1 \ntests/test_graph.py::test_graph_help \n[gw6] [ 69%] RERUN tests/test_final_push.py::TestXmlJsonEdgeCases::test_xml_apparent_exclude_min \ntests/test_final_push.py::TestXmlJsonEdgeCases::test_xml_apparent_exclude_min \n[gw5] [ 69%] PASSED tests/test_final_push.py::TestGraphEdgeCases::test_graph_levels_1 \ntests/test_final_push.py::TestXmlJsonEdgeCases::test_xml_deep_path \n[gw0] [ 69%] PASSED tests/test_graph.py::test_graph_help \ntests/test_graph.py::test_graph_help_shows_all_options \n[gw0] [ 70%] PASSED tests/test_graph.py::test_graph_help_shows_all_options \ntests/test_graph.py::test_graph_nonexistent_database \n[gw9] [ 70%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_fs_exclude \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_fs_exclude \n[gw0] [ 70%] PASSED tests/test_graph.py::test_graph_nonexistent_database \ntests/test_gui.py::test_gui_help \n[gw9] [ 70%] FAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_fs_exclude \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_fs_include \n[gw0] [ 70%] PASSED tests/test_gui.py::test_gui_help \ntests/test_gui.py::test_gui_help_shows_all_options \n[gw0] [ 70%] PASSED tests/test_gui.py::test_gui_help_shows_all_options \ntests/test_gui.py::test_gui_nonexistent_database \n[gw0] [ 70%] PASSED tests/test_gui.py::test_gui_nonexistent_database \ntests/test_histogram.py::test_histogram_help \n[gw7] [ 70%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_fuzz \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_fuzz \n[gw0] [ 70%] PASSED tests/test_histogram.py::test_histogram_help \ntests/test_json.py::test_json_nonexistent_database \n[gw7] [ 70%] FAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_fuzz \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_gradient \n[gw3] [ 70%] RERUN tests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_base10 \ntests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_base10 \n[gw0] [ 70%] PASSED tests/test_json.py::test_json_nonexistent_database \ntests/test_last_10_lines.py::TestLast10Lines::test_cgi_with_all_options_combo \n[gw4] [ 70%] RERUN tests/test_final_push.py::TestLsFullPathRecursive::test_ls_full_path_recursive_nested \ntests/test_final_push.py::TestLsFullPathRecursive::test_ls_full_path_recursive_nested \n[gw0] [ 70%] PASSED tests/test_last_10_lines.py::TestLast10Lines::test_cgi_with_all_options_combo \ntests/test_last_10_lines.py::TestLast10Lines::test_ls_every_option_combination \n[gw4] [ 70%] FAILED tests/test_final_push.py::TestLsFullPathRecursive::test_ls_full_path_recursive_nested \ntests/test_final_push_50.py::TestFinalCoveragePush::test_ls_dirs_only \n[gw4] [ 71%] PASSED tests/test_final_push_50.py::TestFinalCoveragePush::test_ls_dirs_only \ntests/test_final_push_50.py::TestFinalCoveragePush::test_ls_color_option \n[gw4] [ 71%] PASSED tests/test_final_push_50.py::TestFinalCoveragePush::test_ls_color_option \n[gw2] [ 71%] RERUN tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_dirs_only \ntests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_dirs_only \ntests/test_final_push_50.py::TestFinalCoveragePush::test_ls_multiple_levels \n[gw4] [ 71%] PASSED tests/test_final_push_50.py::TestFinalCoveragePush::test_ls_multiple_levels \ntests/test_final_push_50.py::TestFinalCoveragePush::test_ls_apparent_and_count \n[gw4] [ 71%] PASSED tests/test_final_push_50.py::TestFinalCoveragePush::test_ls_apparent_and_count \n[gw2] [ 71%] FAILED tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_dirs_only \ntests/test_final_coverage_push.py::TestXmlJsonRobustness::test_xml_root_path \ntests/test_final_push_50.py::TestFinalCoveragePush::test_info_all_options \n[gw4] [ 71%] PASSED tests/test_final_push_50.py::TestFinalCoveragePush::test_info_all_options \n[gw1] [ 71%] RERUN tests/test_final_coverage_push.py::TestVerboseDebugOutput::test_histogram_with_debug \ntests/test_final_coverage_push.py::TestVerboseDebugOutput::test_histogram_with_debug \ntests/test_more_coverage.py::TestSubcommandHelp::test_help_graph_complete \n[gw4] [ 71%] PASSED tests/test_more_coverage.py::TestSubcommandHelp::test_help_graph_complete \ntests/test_more_coverage.py::TestSubcommandHelp::test_help_cgi_complete \n[gw8] [ 71%] RERUN tests/test_final_coverage_push.py::TestXmlJsonRobustness::test_xml_apparent_and_min_size \ntests/test_final_coverage_push.py::TestXmlJsonRobustness::test_xml_apparent_and_min_size \n[gw4] [ 71%] PASSED tests/test_more_coverage.py::TestSubcommandHelp::test_help_cgi_complete \ntests/test_more_coverage.py::TestSubcommandHelp::test_help_gui_complete \n[gw6] [ 71%] RERUN tests/test_final_push.py::TestXmlJsonEdgeCases::test_xml_apparent_exclude_min \ntests/test_final_push.py::TestXmlJsonEdgeCases::test_xml_apparent_exclude_min \n[gw5] [ 72%] RERUN tests/test_final_push.py::TestXmlJsonEdgeCases::test_xml_deep_path \ntests/test_final_push.py::TestXmlJsonEdgeCases::test_xml_deep_path \n[gw4] [ 72%] PASSED tests/test_more_coverage.py::TestSubcommandHelp::test_help_gui_complete \ntests/test_more_coverage.py::TestSubcommandHelp::test_help_ui_complete \n[gw4] [ 72%] PASSED tests/test_more_coverage.py::TestSubcommandHelp::test_help_ui_complete \ntests/test_more_coverage.py::TestGlobalOptionsWithCommands::test_version_standalone \n[gw6] [ 72%] FAILED tests/test_final_push.py::TestXmlJsonEdgeCases::test_xml_apparent_exclude_min \ntests/test_final_push.py::TestXmlJsonEdgeCases::test_json_apparent_exclude_min \n[gw4] [ 72%] PASSED tests/test_more_coverage.py::TestGlobalOptionsWithCommands::test_version_standalone \ntests/test_more_coverage.py::TestGlobalOptionsWithCommands::test_verbose_with_version \n[gw9] [ 72%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_fs_include \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_fs_include \n[gw4] [ 72%] PASSED tests/test_more_coverage.py::TestGlobalOptionsWithCommands::test_verbose_with_version \ntests/test_more_coverage.py::TestCommandsWithoutDatabase::test_histogram_no_database \n[gw4] [ 72%] PASSED tests/test_more_coverage.py::TestCommandsWithoutDatabase::test_histogram_no_database \ntests/test_more_coverage.py::TestCommandsWithoutDatabase::test_topn_no_database \n[gw4] [ 72%] PASSED tests/test_more_coverage.py::TestCommandsWithoutDatabase::test_topn_no_database \ntests/test_more_coverage.py::TestCommandsWithoutDatabase::test_xml_no_database \n[gw4] [ 72%] PASSED tests/test_more_coverage.py::TestCommandsWithoutDatabase::test_xml_no_database \ntests/test_more_coverage.py::TestCommandsWithoutDatabase::test_json_no_database \n[gw7] [ 73%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_gradient \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_gradient \n[gw3] [ 73%] RERUN tests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_base10 \ntests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_base10 \n[gw4] [ 73%] PASSED tests/test_more_coverage.py::TestCommandsWithoutDatabase::test_json_no_database \ntests/test_more_coverage.py::TestCommandsWithoutDatabase::test_graph_no_database \n[gw0] [ 73%] RERUN tests/test_last_10_lines.py::TestLast10Lines::test_ls_every_option_combination \ntests/test_last_10_lines.py::TestLast10Lines::test_ls_every_option_combination \n[gw4] [ 73%] PASSED tests/test_more_coverage.py::TestCommandsWithoutDatabase::test_graph_no_database \ntests/test_more_coverage.py::TestCommandsWithoutDatabase::test_cgi_no_database \n[gw3] [ 73%] FAILED tests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_base10 \ntests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_short_options \n[gw4] [ 73%] PASSED tests/test_more_coverage.py::TestCommandsWithoutDatabase::test_cgi_no_database \ntests/test_more_coverage.py::TestCommandsWithoutDatabase::test_gui_no_database_no_display \n[gw4] [ 73%] PASSED tests/test_more_coverage.py::TestCommandsWithoutDatabase::test_gui_no_database_no_display \ntests/test_more_coverage.py::TestCommandsWithoutDatabase::test_ui_no_database \n[gw2] [ 73%] RERUN tests/test_final_coverage_push.py::TestXmlJsonRobustness::test_xml_root_path \ntests/test_final_coverage_push.py::TestXmlJsonRobustness::test_xml_root_path \n[gw4] [ 73%] PASSED tests/test_more_coverage.py::TestCommandsWithoutDatabase::test_ui_no_database \ntests/test_more_coverage.py::TestOptionFormatVariations::test_database_long_form \n[gw1] [ 73%] RERUN tests/test_final_coverage_push.py::TestVerboseDebugOutput::test_histogram_with_debug \ntests/test_final_coverage_push.py::TestVerboseDebugOutput::test_histogram_with_debug \n[gw1] [ 73%] FAILED tests/test_final_coverage_push.py::TestVerboseDebugOutput::test_histogram_with_debug \ntests/test_final_coverage_push.py::TestVerboseDebugOutput::test_xml_with_quiet \n[gw8] [ 73%] RERUN tests/test_final_coverage_push.py::TestXmlJsonRobustness::test_xml_apparent_and_min_size \ntests/test_final_coverage_push.py::TestXmlJsonRobustness::test_xml_apparent_and_min_size \n[gw8] [ 73%] FAILED tests/test_final_coverage_push.py::TestXmlJsonRobustness::test_xml_apparent_and_min_size \ntests/test_final_coverage_push.py::TestXmlJsonRobustness::test_json_apparent_and_min_size \n[gw5] [ 73%] RERUN tests/test_final_push.py::TestXmlJsonEdgeCases::test_xml_deep_path \ntests/test_final_push.py::TestXmlJsonEdgeCases::test_xml_deep_path \n[gw6] [ 73%] RERUN tests/test_final_push.py::TestXmlJsonEdgeCases::test_json_apparent_exclude_min \ntests/test_final_push.py::TestXmlJsonEdgeCases::test_json_apparent_exclude_min \n[gw5] [ 73%] FAILED tests/test_final_push.py::TestXmlJsonEdgeCases::test_xml_deep_path \ntests/test_histogram.py::test_histogram_nonexistent_database \n[gw5] [ 74%] PASSED tests/test_histogram.py::test_histogram_nonexistent_database \ntests/test_index.py::test_index_help \n[gw9] [ 74%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_fs_include \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_fs_include \n[gw5] [ 74%] PASSED tests/test_index.py::test_index_help \ntests/test_index.py::test_index_missing_path \n[gw9] [ 74%] FAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_fs_include \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_short_options \n[gw5] [ 74%] PASSED tests/test_index.py::test_index_missing_path \ntests/test_index.py::test_index_nonexistent_directory \n[gw5] [ 74%] PASSED tests/test_index.py::test_index_nonexistent_directory \ntests/test_index.py::test_index_help_shows_options \n[gw7] [ 74%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_gradient \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_gradient \n[gw5] [ 74%] PASSED tests/test_index.py::test_index_help_shows_options \ntests/test_info.py::test_info_help \n[gw7] [ 74%] FAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_gradient \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_bytes \n[gw5] [ 74%] PASSED tests/test_info.py::test_info_help \ntests/test_info.py::test_info_nonexistent_database \n[gw0] [ 74%] RERUN tests/test_last_10_lines.py::TestLast10Lines::test_ls_every_option_combination \ntests/test_last_10_lines.py::TestLast10Lines::test_ls_every_option_combination \n[gw3] [ 74%] RERUN tests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_short_options \ntests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_short_options \n[gw5] [ 74%] PASSED tests/test_info.py::test_info_nonexistent_database \ntests/test_info.py::test_info_shows_help_options \n[gw0] [ 74%] FAILED tests/test_last_10_lines.py::TestLast10Lines::test_ls_every_option_combination \ntests/test_last_10_lines.py::TestLast10Lines::test_graph_every_format_with_options \n[gw5] [ 74%] PASSED tests/test_info.py::test_info_shows_help_options \ntests/test_json.py::test_json_help \n[gw5] [ 75%] PASSED tests/test_json.py::test_json_help \ntests/test_more_coverage.py::TestOptionFormatVariations::test_apparent_long_form \n[gw2] [ 75%] RERUN tests/test_final_coverage_push.py::TestXmlJsonRobustness::test_xml_root_path \ntests/test_final_coverage_push.py::TestXmlJsonRobustness::test_xml_root_path \n[gw4] [ 75%] RERUN tests/test_more_coverage.py::TestOptionFormatVariations::test_database_long_form \ntests/test_more_coverage.py::TestOptionFormatVariations::test_database_long_form \n[gw2] [ 75%] FAILED tests/test_final_coverage_push.py::TestXmlJsonRobustness::test_xml_root_path \ntests/test_more_coverage.py::TestGlobalOptionsWithCommands::test_quiet_with_help \n[gw1] [ 75%] RERUN tests/test_final_coverage_push.py::TestVerboseDebugOutput::test_xml_with_quiet \ntests/test_final_coverage_push.py::TestVerboseDebugOutput::test_xml_with_quiet \n[gw0] [ 75%] PASSED tests/test_last_10_lines.py::TestLast10Lines::test_graph_every_format_with_options \ntests/test_last_10_lines.py::TestLast10Lines::test_xml_json_all_combinations_all_paths \n[gw2] [ 75%] PASSED tests/test_more_coverage.py::TestGlobalOptionsWithCommands::test_quiet_with_help \ntests/test_more_coverage.py::TestGlobalOptionsWithCommands::test_debug_with_help \n[gw8] [ 75%] RERUN tests/test_final_coverage_push.py::TestXmlJsonRobustness::test_json_apparent_and_min_size \ntests/test_final_coverage_push.py::TestXmlJsonRobustness::test_json_apparent_and_min_size \n[gw2] [ 75%] PASSED tests/test_more_coverage.py::TestGlobalOptionsWithCommands::test_debug_with_help \ntests/test_more_coverage.py::TestInvalidOptions::test_invalid_global_option \n[gw2] [ 75%] PASSED tests/test_more_coverage.py::TestInvalidOptions::test_invalid_global_option \ntests/test_more_coverage.py::TestInvalidOptions::test_index_invalid_option \n[gw6] [ 75%] RERUN tests/test_final_push.py::TestXmlJsonEdgeCases::test_json_apparent_exclude_min \ntests/test_final_push.py::TestXmlJsonEdgeCases::test_json_apparent_exclude_min \n[gw2] [ 75%] PASSED tests/test_more_coverage.py::TestInvalidOptions::test_index_invalid_option \ntests/test_more_coverage.py::TestInvalidOptions::test_ls_invalid_option \n[gw6] [ 75%] FAILED tests/test_final_push.py::TestXmlJsonEdgeCases::test_json_apparent_exclude_min \ntests/test_final_push.py::TestCgiAllOptions::test_cgi_all_flags \n[gw2] [ 76%] PASSED tests/test_more_coverage.py::TestInvalidOptions::test_ls_invalid_option \ntests/test_more_coverage.py::TestInvalidOptions::test_graph_invalid_option \n[gw6] [ 76%] PASSED tests/test_final_push.py::TestCgiAllOptions::test_cgi_all_flags \ntests/test_final_push.py::TestCgiAllOptions::test_cgi_tooltip_list_combo \n[gw2] [ 76%] PASSED tests/test_more_coverage.py::TestInvalidOptions::test_graph_invalid_option \ntests/test_more_coverage.py::TestCommandsWithoutDatabase::test_ls_no_database \n[gw9] [ 76%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_short_options \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_short_options \n[gw6] [ 76%] PASSED tests/test_final_push.py::TestCgiAllOptions::test_cgi_tooltip_list_combo \ntests/test_final_push.py::TestHistogramVariations::test_histogram_base10_bytes \n[gw2] [ 76%] PASSED tests/test_more_coverage.py::TestCommandsWithoutDatabase::test_ls_no_database \ntests/test_more_coverage.py::TestCommandsWithoutDatabase::test_info_no_database \n[gw2] [ 76%] PASSED tests/test_more_coverage.py::TestCommandsWithoutDatabase::test_info_no_database \ntests/test_more_coverage.py::TestHelpCommandVariations::test_help_for_index \n[gw2] [ 76%] PASSED tests/test_more_coverage.py::TestHelpCommandVariations::test_help_for_index \ntests/test_more_coverage.py::TestHelpCommandVariations::test_help_for_graph \n[gw7] [ 76%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_bytes \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_bytes \n[gw2] [ 77%] PASSED tests/test_more_coverage.py::TestHelpCommandVariations::test_help_for_graph \ntests/test_more_coverage.py::TestIndexCommandOptions::test_index_exclude_option \n[gw3] [ 77%] RERUN tests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_short_options \ntests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_short_options \n[gw2] [ 77%] PASSED tests/test_more_coverage.py::TestIndexCommandOptions::test_index_exclude_option \ntests/test_more_coverage.py::TestIndexCommandOptions::test_index_max_depth_option \n[gw3] [ 77%] FAILED tests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_short_options \ntests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_apparent \n[gw2] [ 77%] PASSED tests/test_more_coverage.py::TestIndexCommandOptions::test_index_max_depth_option \ntests/test_more_coverage.py::TestIndexCommandOptions::test_index_one_file_system_option \n[gw5] [ 77%] RERUN tests/test_more_coverage.py::TestOptionFormatVariations::test_apparent_long_form \ntests/test_more_coverage.py::TestOptionFormatVariations::test_apparent_long_form \n[gw2] [ 77%] PASSED tests/test_more_coverage.py::TestIndexCommandOptions::test_index_one_file_system_option \ntests/test_more_coverage.py::TestGraphCommandOptions::test_graph_format_option \n[gw4] [ 77%] RERUN tests/test_more_coverage.py::TestOptionFormatVariations::test_database_long_form \ntests/test_more_coverage.py::TestOptionFormatVariations::test_database_long_form \n[gw2] [ 77%] PASSED tests/test_more_coverage.py::TestGraphCommandOptions::test_graph_format_option \ntests/test_more_coverage.py::TestGraphCommandOptions::test_graph_size_option \n[gw4] [ 77%] FAILED tests/test_more_coverage.py::TestOptionFormatVariations::test_database_long_form \ntests/test_more_coverage.py::TestOptionFormatVariations::test_database_short_form \n[gw2] [ 77%] PASSED tests/test_more_coverage.py::TestGraphCommandOptions::test_graph_size_option \ntests/test_more_coverage.py::TestGraphCommandOptions::test_graph_levels_option \n[gw1] [ 77%] RERUN tests/test_final_coverage_push.py::TestVerboseDebugOutput::test_xml_with_quiet \ntests/test_final_coverage_push.py::TestVerboseDebugOutput::test_xml_with_quiet \n[gw0] [ 77%] RERUN tests/test_last_10_lines.py::TestLast10Lines::test_xml_json_all_combinations_all_paths \ntests/test_last_10_lines.py::TestLast10Lines::test_xml_json_all_combinations_all_paths \n[gw2] [ 77%] PASSED tests/test_more_coverage.py::TestGraphCommandOptions::test_graph_levels_option \ntests/test_more_coverage.py::TestGraphCommandOptions::test_graph_dpi_option \n[gw1] [ 77%] FAILED tests/test_final_coverage_push.py::TestVerboseDebugOutput::test_xml_with_quiet \ntests/test_final_coverage_push.py::TestShortFormOptions::test_info_short_options \n[gw8] [ 77%] RERUN tests/test_final_coverage_push.py::TestXmlJsonRobustness::test_json_apparent_and_min_size \ntests/test_final_coverage_push.py::TestXmlJsonRobustness::test_json_apparent_and_min_size \n[gw2] [ 78%] PASSED tests/test_more_coverage.py::TestGraphCommandOptions::test_graph_dpi_option \ntests/test_more_coverage.py::TestGraphCommandOptions::test_graph_palette_option \n[gw8] [ 78%] FAILED tests/test_final_coverage_push.py::TestXmlJsonRobustness::test_json_apparent_and_min_size \ntests/test_final_coverage_push.py::TestGraphOutputFormats::test_graph_png_format \n[gw2] [ 78%] PASSED tests/test_more_coverage.py::TestGraphCommandOptions::test_graph_palette_option \ntests/test_more_coverage.py::TestGraphCommandOptions::test_graph_gradient_option \n[gw8] [ 78%] PASSED tests/test_final_coverage_push.py::TestGraphOutputFormats::test_graph_png_format \ntests/test_final_coverage_push.py::TestGraphOutputFormats::test_graph_svg_format_explicit \n[gw2] [ 78%] PASSED tests/test_more_coverage.py::TestGraphCommandOptions::test_graph_gradient_option \ntests/test_more_coverage.py::TestGraphCommandOptions::test_graph_fuzz_option \n[gw8] [ 78%] PASSED tests/test_final_coverage_push.py::TestGraphOutputFormats::test_graph_svg_format_explicit \ntests/test_final_coverage_push.py::TestGraphOutputFormats::test_graph_html_format \n[gw2] [ 78%] PASSED tests/test_more_coverage.py::TestGraphCommandOptions::test_graph_fuzz_option \ntests/test_more_coverage.py::TestGraphCommandOptions::test_graph_ring_gap_option \n[gw9] [ 78%] RERUN tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_short_options \ntests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_short_options \n[gw8] [ 78%] PASSED tests/test_final_coverage_push.py::TestGraphOutputFormats::test_graph_html_format \ntests/test_final_coverage_push.py::TestGraphOutputFormats::test_graph_pdf_format \n[gw2] [ 78%] PASSED tests/test_more_coverage.py::TestGraphCommandOptions::test_graph_ring_gap_option \ntests/test_more_coverage.py::TestLsCommandOptions::test_ls_recursive_option \n[gw6] [ 78%] RERUN tests/test_final_push.py::TestHistogramVariations::test_histogram_base10_bytes \ntests/test_final_push.py::TestHistogramVariations::test_histogram_base10_bytes \n[gw9] [ 78%] FAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_short_options \ntests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_with_equals_sign \n[gw8] [ 79%] PASSED tests/test_final_coverage_push.py::TestGraphOutputFormats::test_graph_pdf_format \ntests/test_final_coverage_push.py::TestGraphOutputFormats::test_graph_with_dpi \n[gw2] [ 79%] PASSED tests/test_more_coverage.py::TestLsCommandOptions::test_ls_recursive_option \ntests/test_more_coverage.py::TestLsCommandOptions::test_ls_levels_option \n[gw8] [ 79%] PASSED tests/test_final_coverage_push.py::TestGraphOutputFormats::test_graph_with_dpi \ntests/test_more_coverage.py::TestLsCommandOptions::test_ls_name_sort_option \n[gw2] [ 79%] PASSED tests/test_more_coverage.py::TestLsCommandOptions::test_ls_levels_option \ntests/test_more_coverage.py::TestEnvironmentVariables::test_duc_database_env_var \n[gw8] [ 79%] PASSED tests/test_more_coverage.py::TestLsCommandOptions::test_ls_name_sort_option \ntests/test_more_coverage.py::TestLsCommandOptions::test_ls_directory_option \n[gw7] [ 79%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_bytes \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_bytes \n[gw2] [ 79%] PASSED tests/test_more_coverage.py::TestEnvironmentVariables::test_duc_database_env_var \ntests/test_more_coverage.py::TestEnvironmentVariables::test_home_env_affects_default_db \n[gw8] [ 79%] PASSED tests/test_more_coverage.py::TestLsCommandOptions::test_ls_directory_option \ntests/test_more_coverage.py::TestLsCommandOptions::test_ls_dirs_only_option \n[gw7] [ 79%] FAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_bytes \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_apparent \n[gw3] [ 79%] RERUN tests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_apparent \ntests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_apparent \n[gw2] [ 79%] PASSED tests/test_more_coverage.py::TestEnvironmentVariables::test_home_env_affects_default_db \ntests/test_more_coverage.py::TestEnvironmentVariables::test_display_env_for_gui \n[gw8] [ 80%] PASSED tests/test_more_coverage.py::TestLsCommandOptions::test_ls_dirs_only_option \ntests/test_more_coverage.py::TestLsCommandOptions::test_ls_full_path_option \n[gw8] [ 80%] PASSED tests/test_more_coverage.py::TestLsCommandOptions::test_ls_full_path_option \n[gw2] [ 80%] PASSED tests/test_more_coverage.py::TestEnvironmentVariables::test_display_env_for_gui \ntests/test_more_coverage.py::TestLsCommandOptions::test_ls_count_option \ntests/test_more_coverage.py::TestEdgeCases::test_empty_command \n[gw2] [ 80%] PASSED tests/test_more_coverage.py::TestEdgeCases::test_empty_command \n[gw8] [ 80%] PASSED tests/test_more_coverage.py::TestLsCommandOptions::test_ls_count_option \ntests/test_more_coverage.py::TestEdgeCases::test_double_dash_help \ntests/test_more_coverage.py::TestEdgeCases::test_multiple_database_options \n[gw5] [ 80%] RERUN tests/test_more_coverage.py::TestOptionFormatVariations::test_apparent_long_form \ntests/test_more_coverage.py::TestOptionFormatVariations::test_apparent_long_form \n[gw2] [ 80%] PASSED tests/test_more_coverage.py::TestEdgeCases::test_double_dash_help \ntests/test_more_database_tests.py::TestAdditionalOptions::test_ls_name_sort_recursive \n[gw2] [ 80%] PASSED tests/test_more_database_tests.py::TestAdditionalOptions::test_ls_name_sort_recursive \ntests/test_more_database_tests.py::TestAdditionalOptions::test_ls_graph_with_levels \n[gw2] [ 80%] PASSED tests/test_more_database_tests.py::TestAdditionalOptions::test_ls_graph_with_levels \n[gw5] [ 80%] FAILED tests/test_more_coverage.py::TestOptionFormatVariations::test_apparent_long_form \ntests/test_more_coverage.py::TestOptionFormatVariations::test_apparent_short_form \n[gw4] [ 80%] RERUN tests/test_more_coverage.py::TestOptionFormatVariations::test_database_short_form \ntests/test_more_coverage.py::TestOptionFormatVariations::test_database_short_form \ntests/test_option_combinations.py::test_help_with_all_subcommands \n[gw0] [ 80%] RERUN tests/test_last_10_lines.py::TestLast10Lines::test_xml_json_all_combinations_all_paths \ntests/test_last_10_lines.py::TestLast10Lines::test_xml_json_all_combinations_all_paths \n[gw0] [ 80%] FAILED tests/test_last_10_lines.py::TestLast10Lines::test_xml_json_all_combinations_all_paths \ntests/test_last_10_lines.py::TestLast10Lines::test_info_histogram_all_paths \n[gw1] [ 81%] RERUN tests/test_final_coverage_push.py::TestShortFormOptions::test_info_short_options \ntests/test_final_coverage_push.py::TestShortFormOptions::test_info_short_options \n[gw9] [ 81%] RERUN tests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_with_equals_sign \ntests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_with_equals_sign \n[gw6] [ 81%] RERUN tests/test_final_push.py::TestHistogramVariations::test_histogram_base10_bytes \ntests/test_final_push.py::TestHistogramVariations::test_histogram_base10_bytes \n[gw6] [ 81%] FAILED tests/test_final_push.py::TestHistogramVariations::test_histogram_base10_bytes \ntests/test_final_push.py::TestHistogramVariations::test_histogram_apparent_base10 \n[gw7] [ 81%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_apparent \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_apparent \n[gw3] [ 81%] RERUN tests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_apparent \ntests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_apparent \n[gw2] [ 81%] PASSED tests/test_option_combinations.py::test_help_with_all_subcommands \ntests/test_option_combinations.py::test_version_with_subcommands \n[gw3] [ 81%] FAILED tests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_apparent \ntests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_bytes \n[gw2] [ 81%] PASSED tests/test_option_combinations.py::test_version_with_subcommands \ntests/test_option_combinations.py::test_help_flag_variations \n[gw8] [ 81%] RERUN tests/test_more_coverage.py::TestEdgeCases::test_multiple_database_options \ntests/test_more_coverage.py::TestEdgeCases::test_multiple_database_options \n[gw5] [ 81%] RERUN tests/test_more_coverage.py::TestOptionFormatVariations::test_apparent_short_form \ntests/test_more_coverage.py::TestOptionFormatVariations::test_apparent_short_form \n[gw4] [ 81%] RERUN tests/test_more_coverage.py::TestOptionFormatVariations::test_database_short_form \ntests/test_more_coverage.py::TestOptionFormatVariations::test_database_short_form \n[gw4] [ 81%] FAILED tests/test_more_coverage.py::TestOptionFormatVariations::test_database_short_form \ntests/test_more_coverage.py::TestOptionFormatVariations::test_bytes_long_form \n[gw0] [ 81%] RERUN tests/test_last_10_lines.py::TestLast10Lines::test_info_histogram_all_paths \ntests/test_last_10_lines.py::TestLast10Lines::test_info_histogram_all_paths \n[gw2] [ 81%] PASSED tests/test_option_combinations.py::test_help_flag_variations \ntests/test_option_combinations.py::test_database_option_short_form \n[gw1] [ 81%] RERUN tests/test_final_coverage_push.py::TestShortFormOptions::test_info_short_options \ntests/test_final_coverage_push.py::TestShortFormOptions::test_info_short_options \n[gw1] [ 81%] FAILED tests/test_final_coverage_push.py::TestShortFormOptions::test_info_short_options \ntests/test_final_coverage_push.py::TestShortFormOptions::test_ls_short_options \n[gw2] [ 82%] PASSED tests/test_option_combinations.py::test_database_option_short_form \ntests/test_option_combinations.py::test_bytes_option_short_form \n[gw2] [ 82%] PASSED tests/test_option_combinations.py::test_bytes_option_short_form \ntests/test_option_combinations.py::test_apparent_option_short_form \n[gw2] [ 82%] PASSED tests/test_option_combinations.py::test_apparent_option_short_form \ntests/test_option_combinations.py::test_multiple_global_options \n[gw9] [ 82%] RERUN tests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_with_equals_sign \ntests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_with_equals_sign \n[gw2] [ 82%] PASSED tests/test_option_combinations.py::test_multiple_global_options \ntests/test_option_combinations.py::test_help_after_invalid_option \n[gw9] [ 82%] FAILED tests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_with_equals_sign \ntests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_with_space \n[gw6] [ 82%] RERUN tests/test_final_push.py::TestHistogramVariations::test_histogram_apparent_base10 \ntests/test_final_push.py::TestHistogramVariations::test_histogram_apparent_base10 \n[gw2] [ 82%] PASSED tests/test_option_combinations.py::test_help_after_invalid_option \ntests/test_option_combinations.py::test_histogram_all_options \n[gw2] [ 82%] PASSED tests/test_option_combinations.py::test_histogram_all_options \ntests/test_option_combinations.py::test_topn_all_options \n[gw2] [ 82%] PASSED tests/test_option_combinations.py::test_topn_all_options \ntests/test_option_combinations.py::test_index_all_major_options \n[gw7] [ 82%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_apparent \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_apparent \n[gw7] [ 82%] FAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_apparent \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_count \n[gw2] [ 82%] PASSED tests/test_option_combinations.py::test_index_all_major_options \ntests/test_option_combinations.py::test_ls_all_display_options \n[gw3] [ 83%] RERUN tests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_bytes \ntests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_bytes \n[gw2] [ 83%] PASSED tests/test_option_combinations.py::test_ls_all_display_options \ntests/test_option_combinations.py::test_graph_all_format_options \n[gw8] [ 83%] RERUN tests/test_more_coverage.py::TestEdgeCases::test_multiple_database_options \ntests/test_more_coverage.py::TestEdgeCases::test_multiple_database_options \n[gw2] [ 83%] PASSED tests/test_option_combinations.py::test_graph_all_format_options \ntests/test_option_combinations.py::test_cgi_all_options \n[gw2] [ 83%] PASSED tests/test_option_combinations.py::test_cgi_all_options \ntests/test_option_combinations.py::test_gui_all_options \n[gw8] [ 83%] FAILED tests/test_more_coverage.py::TestEdgeCases::test_multiple_database_options \ntests/test_more_database_tests.py::TestAdditionalOptions::test_topn_with_bytes \n[gw8] [ 83%] PASSED tests/test_more_database_tests.py::TestAdditionalOptions::test_topn_with_bytes \ntests/test_more_database_tests.py::TestAdditionalOptions::test_ls_all_combinations \n[gw8] [ 83%] PASSED tests/test_more_database_tests.py::TestAdditionalOptions::test_ls_all_combinations \n[gw5] [ 83%] RERUN tests/test_more_coverage.py::TestOptionFormatVariations::test_apparent_short_form \ntests/test_more_coverage.py::TestOptionFormatVariations::test_apparent_short_form \n[gw2] [ 83%] PASSED tests/test_option_combinations.py::test_gui_all_options \ntests/test_over_50.py::TestMore::test_xml_minsize_variations \ntests/test_more_database_tests.py::TestAdditionalOptions::test_json_deep_tree \n[gw8] [ 83%] PASSED tests/test_more_database_tests.py::TestAdditionalOptions::test_json_deep_tree \n[gw5] [ 83%] FAILED tests/test_more_coverage.py::TestOptionFormatVariations::test_apparent_short_form \ntests/test_more_coverage.py::TestHelpCommandVariations::test_help_command_no_args \ntests/test_more_database_tests.py::TestAdditionalOptions::test_xml_deep_tree \n[gw8] [ 83%] PASSED tests/test_more_database_tests.py::TestAdditionalOptions::test_xml_deep_tree \n[gw4] [ 84%] RERUN tests/test_more_coverage.py::TestOptionFormatVariations::test_bytes_long_form \ntests/test_more_coverage.py::TestOptionFormatVariations::test_bytes_long_form \ntests/test_over_50.py::TestMore::test_ls_bytes_variations \n[gw0] [ 84%] RERUN tests/test_last_10_lines.py::TestLast10Lines::test_info_histogram_all_paths \ntests/test_last_10_lines.py::TestLast10Lines::test_info_histogram_all_paths \n[gw5] [ 84%] PASSED tests/test_more_coverage.py::TestHelpCommandVariations::test_help_command_no_args \ntests/test_more_coverage.py::TestHelpCommandVariations::test_help_with_all_flag \n[gw0] [ 84%] FAILED tests/test_last_10_lines.py::TestLast10Lines::test_info_histogram_all_paths \ntests/test_last_10_lines.py::TestLast10Lines::test_histogram_all_options_both_dbs \n[gw5] [ 84%] PASSED tests/test_more_coverage.py::TestHelpCommandVariations::test_help_with_all_flag \ntests/test_more_coverage.py::TestHelpCommandVariations::test_help_for_help \n[gw1] [ 84%] RERUN tests/test_final_coverage_push.py::TestShortFormOptions::test_ls_short_options \ntests/test_final_coverage_push.py::TestShortFormOptions::test_ls_short_options \n[gw5] [ 84%] PASSED tests/test_more_coverage.py::TestHelpCommandVariations::test_help_for_help \ntests/test_push_to_50.py::TestMoreLsOptions::test_ls_with_full_path \n[gw5] [ 84%] PASSED tests/test_push_to_50.py::TestMoreLsOptions::test_ls_with_full_path \ntests/test_push_to_50.py::TestMoreLsOptions::test_ls_with_ascii \n[gw5] [ 84%] PASSED tests/test_push_to_50.py::TestMoreLsOptions::test_ls_with_ascii \ntests/test_push_to_50.py::TestMoreLsOptions::test_ls_subdirectory \n[gw5] [ 84%] PASSED tests/test_push_to_50.py::TestMoreLsOptions::test_ls_subdirectory \ntests/test_push_to_50.py::TestMoreJsonXml::test_json_exclude_files \n[gw5] [ 84%] PASSED tests/test_push_to_50.py::TestMoreJsonXml::test_json_exclude_files \ntests/test_push_to_50.py::TestMoreJsonXml::test_xml_exclude_files \n[gw5] [ 85%] PASSED tests/test_push_to_50.py::TestMoreJsonXml::test_xml_exclude_files \ntests/test_push_to_50.py::TestMoreJsonXml::test_json_subdirectory \n[gw5] [ 85%] PASSED tests/test_push_to_50.py::TestMoreJsonXml::test_json_subdirectory \n[gw9] [ 85%] RERUN tests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_with_space \ntests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_with_space \ntests/test_push_to_50.py::TestMoreJsonXml::test_xml_subdirectory \n[gw5] [ 85%] PASSED tests/test_push_to_50.py::TestMoreJsonXml::test_xml_subdirectory \ntests/test_push_to_50.py::TestInfoHistogramVariations::test_info_histogram \n[gw5] [ 85%] PASSED tests/test_push_to_50.py::TestInfoHistogramVariations::test_info_histogram \n[gw6] [ 85%] RERUN tests/test_final_push.py::TestHistogramVariations::test_histogram_apparent_base10 \ntests/test_final_push.py::TestHistogramVariations::test_histogram_apparent_base10 \ntests/test_push_to_50.py::TestInfoHistogramVariations::test_histogram_apparent \n[gw5] [ 85%] PASSED tests/test_push_to_50.py::TestInfoHistogramVariations::test_histogram_apparent \n[gw6] [ 85%] FAILED tests/test_final_push.py::TestHistogramVariations::test_histogram_apparent_base10 \ntests/test_more_coverage.py::TestIndexCommandOptions::test_index_check_hard_links_option \ntests/test_push_to_50.py::TestMultipleOptions::test_ls_bytes_apparent_count \n[gw5] [ 85%] PASSED tests/test_push_to_50.py::TestMultipleOptions::test_ls_bytes_apparent_count \ntests/test_push_to_50.py::TestMultipleOptions::test_ls_classify_recursive \n[gw5] [ 85%] PASSED tests/test_push_to_50.py::TestMultipleOptions::test_ls_classify_recursive \n[gw6] [ 85%] PASSED tests/test_more_coverage.py::TestIndexCommandOptions::test_index_check_hard_links_option \ntests/test_more_coverage.py::TestIndexCommandOptions::test_index_progress_option \ntests/test_push_to_50.py::TestMultipleOptions::test_json_apparent_min_size \n[gw5] [ 86%] PASSED tests/test_push_to_50.py::TestMultipleOptions::test_json_apparent_min_size \n[gw7] [ 86%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_count \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_count \ntests/test_push_to_50.py::TestMultipleOptions::test_xml_apparent_min_size \n[gw5] [ 86%] PASSED tests/test_push_to_50.py::TestMultipleOptions::test_xml_apparent_min_size \n[gw6] [ 86%] PASSED tests/test_more_coverage.py::TestIndexCommandOptions::test_index_progress_option \ntests/test_more_coverage.py::TestIndexCommandOptions::test_index_force_option \n[gw3] [ 86%] RERUN tests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_bytes \ntests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_bytes \ntests/test_push_to_50.py::TestGraphWithDatabase::test_graph_help_with_database_option \n[gw6] [ 86%] PASSED tests/test_more_coverage.py::TestIndexCommandOptions::test_index_force_option \ntests/test_more_coverage.py::TestIndexCommandOptions::test_index_dry_run_option \n[gw3] [ 86%] FAILED tests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_bytes \ntests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_short_options \n[gw5] [ 86%] PASSED tests/test_push_to_50.py::TestGraphWithDatabase::test_graph_help_with_database_option \ntests/test_push_to_50.py::TestDirectoryNavigation::test_ls_root_then_subdirs \n[gw5] [ 86%] PASSED tests/test_push_to_50.py::TestDirectoryNavigation::test_ls_root_then_subdirs \n[gw6] [ 86%] PASSED tests/test_more_coverage.py::TestIndexCommandOptions::test_index_dry_run_option \ntests/test_push_to_50.py::TestDirectoryNavigation::test_info_after_index \n[gw5] [ 86%] PASSED tests/test_push_to_50.py::TestDirectoryNavigation::test_info_after_index \ntests/test_more_coverage.py::TestGraphCommandOptions::test_graph_output_option \ntests/test_push_to_50_final.py::TestErrorPaths::test_graph_invalid_format \n[gw6] [ 87%] PASSED tests/test_more_coverage.py::TestGraphCommandOptions::test_graph_output_option \ntests/test_push_to_50_final.py::TestErrorPaths::test_graph_write_protected_output \n[gw5] [ 87%] PASSED tests/test_push_to_50_final.py::TestErrorPaths::test_graph_invalid_format \ntests/test_push_to_50_final.py::TestErrorPaths::test_info_with_corrupt_database \n[gw6] [ 87%] PASSED tests/test_push_to_50_final.py::TestErrorPaths::test_graph_write_protected_output \ntests/test_push_to_50_final.py::TestErrorPaths::test_ls_with_very_long_path \n[gw2] [ 87%] RERUN tests/test_over_50.py::TestMore::test_xml_minsize_variations \ntests/test_over_50.py::TestMore::test_xml_minsize_variations \n[gw5] [ 87%] PASSED tests/test_push_to_50_final.py::TestErrorPaths::test_info_with_corrupt_database \ntests/test_push_to_50_final.py::TestErrorPaths::test_ls_recursive_depth_boundary \n[gw6] [ 87%] PASSED tests/test_push_to_50_final.py::TestErrorPaths::test_ls_with_very_long_path \ntests/test_push_to_50_final.py::TestErrorPaths::test_xml_json_with_empty_path \n[gw4] [ 87%] RERUN tests/test_more_coverage.py::TestOptionFormatVariations::test_bytes_long_form \ntests/test_more_coverage.py::TestOptionFormatVariations::test_bytes_long_form \n[gw8] [ 87%] RERUN tests/test_over_50.py::TestMore::test_ls_bytes_variations \ntests/test_over_50.py::TestMore::test_ls_bytes_variations \n[gw4] [ 87%] FAILED tests/test_more_coverage.py::TestOptionFormatVariations::test_bytes_long_form \ntests/test_more_coverage.py::TestOptionFormatVariations::test_bytes_short_form \n[gw0] [ 87%] RERUN tests/test_last_10_lines.py::TestLast10Lines::test_histogram_all_options_both_dbs \ntests/test_last_10_lines.py::TestLast10Lines::test_histogram_all_options_both_dbs \n[gw6] [ 87%] PASSED tests/test_push_to_50_final.py::TestErrorPaths::test_xml_json_with_empty_path \ntests/test_push_to_50_final.py::TestErrorPaths::test_cgi_without_database_env \n[gw1] [ 87%] RERUN tests/test_final_coverage_push.py::TestShortFormOptions::test_ls_short_options \ntests/test_final_coverage_push.py::TestShortFormOptions::test_ls_short_options \n[gw6] [ 88%] PASSED tests/test_push_to_50_final.py::TestErrorPaths::test_cgi_without_database_env \ntests/test_quick_database_ops.py::TestQuickOps::test_ls_basic_output \n[gw1] [ 88%] FAILED tests/test_final_coverage_push.py::TestShortFormOptions::test_ls_short_options \ntests/test_final_coverage_push.py::TestShortFormOptions::test_graph_short_options \n[gw1] [ 88%] PASSED tests/test_final_coverage_push.py::TestShortFormOptions::test_graph_short_options \ntests/test_final_coverage_push.py::TestDatabasePaths::test_absolute_database_path \n[gw9] [ 88%] RERUN tests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_with_space \ntests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_with_space \n[gw9] [ 88%] FAILED tests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_with_space \ntests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_short_form \n[gw7] [ 88%] RERUN tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_count \ntests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_count \n[gw7] [ 88%] FAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_count \ntests/test_option_combinations.py::test_ui_all_options \n[gw3] [ 88%] RERUN tests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_short_options \ntests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_short_options \n[gw7] [ 88%] PASSED tests/test_option_combinations.py::test_ui_all_options \ntests/test_option_combinations.py::test_xml_json_similar_options \n[gw7] [ 88%] PASSED tests/test_option_combinations.py::test_xml_json_similar_options \ntests/test_over_50.py::TestMore::test_ls_with_path_variations1 \n[gw2] [ 88%] RERUN tests/test_over_50.py::TestMore::test_xml_minsize_variations \ntests/test_over_50.py::TestMore::test_xml_minsize_variations \n[gw5] [ 88%] RERUN tests/test_push_to_50_final.py::TestErrorPaths::test_ls_recursive_depth_boundary \ntests/test_push_to_50_final.py::TestErrorPaths::test_ls_recursive_depth_boundary \n[gw8] [ 88%] RERUN tests/test_over_50.py::TestMore::test_ls_bytes_variations \ntests/test_over_50.py::TestMore::test_ls_bytes_variations \n[gw2] [ 88%] FAILED tests/test_over_50.py::TestMore::test_xml_minsize_variations \ntests/test_over_50.py::TestMore::test_json_minsize_variations \n[gw8] [ 88%] FAILED tests/test_over_50.py::TestMore::test_ls_bytes_variations \ntests/test_push_to_50.py::TestMoreLsOptions::test_ls_with_graph \n[gw4] [ 88%] RERUN tests/test_more_coverage.py::TestOptionFormatVariations::test_bytes_short_form \ntests/test_more_coverage.py::TestOptionFormatVariations::test_bytes_short_form \n[gw8] [ 88%] PASSED tests/test_push_to_50.py::TestMoreLsOptions::test_ls_with_graph \n[gw0] [ 88%] RERUN tests/test_last_10_lines.py::TestLast10Lines::test_histogram_all_options_both_dbs \ntests/test_last_10_lines.py::TestLast10Lines::test_histogram_all_options_both_dbs \ntests/test_push_to_50.py::TestMoreLsOptions::test_ls_with_name_sort \n[gw8] [ 88%] PASSED tests/test_push_to_50.py::TestMoreLsOptions::test_ls_with_name_sort \n[gw6] [ 89%] RERUN tests/test_quick_database_ops.py::TestQuickOps::test_ls_basic_output \ntests/test_quick_database_ops.py::TestQuickOps::test_ls_basic_output \ntests/test_push_to_50.py::TestMoreLsOptions::test_ls_with_directory \n[gw8] [ 89%] PASSED tests/test_push_to_50.py::TestMoreLsOptions::test_ls_with_directory \n[gw0] [ 89%] FAILED tests/test_last_10_lines.py::TestLast10Lines::test_histogram_all_options_both_dbs \ntests/test_ls.py::test_ls_help \ntests/test_reach_50.py::TestMoreGraphCombinations::test_graph_count_apparent_combo \n[gw0] [ 89%] PASSED tests/test_ls.py::test_ls_help \ntests/test_ls.py::test_ls_help_shows_all_options \n[gw8] [ 89%] PASSED tests/test_reach_50.py::TestMoreGraphCombinations::test_graph_count_apparent_combo \ntests/test_reach_50.py::TestCgiMoreOptions::test_cgi_size_levels_dpi \n[gw1] [ 89%] RERUN tests/test_final_coverage_push.py::TestDatabasePaths::test_absolute_database_path \ntests/test_final_coverage_push.py::TestDatabasePaths::test_absolute_database_path \n[gw0] [ 89%] PASSED tests/test_ls.py::test_ls_help_shows_all_options \ntests/test_ls.py::test_ls_nonexistent_database \n[gw8] [ 89%] PASSED tests/test_reach_50.py::TestCgiMoreOptions::test_cgi_size_levels_dpi \ntests/test_reach_50.py::TestCgiMoreOptions::test_cgi_fuzz_ring_gap \n[gw0] [ 89%] PASSED tests/test_ls.py::test_ls_nonexistent_database \ntests/test_more_coverage.py::TestSubcommandHelp::test_help_index_complete \n[gw8] [ 89%] PASSED tests/test_reach_50.py::TestCgiMoreOptions::test_cgi_fuzz_ring_gap \ntests/test_recursive_structures.py::TestRecursiveJson::test_json_recursive_structure \n[gw8] [ 90%] SKIPPED tests/test_recursive_structures.py::TestRecursiveJson::test_json_recursive_structure \n[gw9] [ 90%] RERUN tests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_short_form \ntests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_short_form \ntests/test_recursive_structures.py::TestRecursiveJson::test_json_with_subdirectory \n[gw8] [ 90%] SKIPPED tests/test_recursive_structures.py::TestRecursiveJson::test_json_with_subdirectory \n[gw0] [ 90%] PASSED tests/test_more_coverage.py::TestSubcommandHelp::test_help_index_complete \ntests/test_more_coverage.py::TestSubcommandHelp::test_help_ls_complete \ntests/test_recursive_structures.py::TestRecursiveJson::test_json_exclude_files_with_dirs \n[gw8] [ 90%] SKIPPED tests/test_recursive_structures.py::TestRecursiveJson::test_json_exclude_files_with_dirs \n[gw0] [ 90%] PASSED tests/test_more_coverage.py::TestSubcommandHelp::test_help_ls_complete \ntests/test_recursive_structures.py::TestRecursiveXml::test_xml_exclude_files_with_dirs \n[gw0] [ 90%] SKIPPED tests/test_recursive_structures.py::TestRecursiveXml::test_xml_exclude_files_with_dirs \ntests/test_recursive_structures.py::TestRecursiveXml::test_xml_recursive_structure \n[gw8] [ 90%] SKIPPED tests/test_recursive_structures.py::TestRecursiveXml::test_xml_recursive_structure \ntests/test_recursive_structures.py::TestRecursiveLs::test_ls_recursive_nested \n[gw0] [ 90%] SKIPPED tests/test_recursive_structures.py::TestRecursiveLs::test_ls_recursive_nested \ntests/test_recursive_structures.py::TestRecursiveXml::test_xml_with_subdirectory \n[gw8] [ 91%] SKIPPED tests/test_recursive_structures.py::TestRecursiveXml::test_xml_with_subdirectory \ntests/test_recursive_structures.py::TestRecursiveLs::test_ls_recursive_with_levels_1 \n[gw0] [ 91%] SKIPPED tests/test_recursive_structures.py::TestRecursiveLs::test_ls_recursive_with_levels_1 \ntests/test_recursive_structures.py::TestGraphWithNestedDirs::test_graph_nested_structure \n[gw8] [ 91%] SKIPPED tests/test_recursive_structures.py::TestGraphWithNestedDirs::test_graph_nested_structure \ntests/test_recursive_structures.py::TestRecursiveLs::test_ls_recursive_with_levels_2 \n[gw0] [ 91%] SKIPPED tests/test_recursive_structures.py::TestRecursiveLs::test_ls_recursive_with_levels_2 \ntests/test_recursive_structures.py::TestGraphWithNestedDirs::test_graph_nested_svg \n[gw8] [ 91%] SKIPPED tests/test_recursive_structures.py::TestGraphWithNestedDirs::test_graph_nested_svg \ntests/test_recursive_structures.py::TestGraphWithNestedDirs::test_graph_nested_with_levels \n[gw0] [ 91%] SKIPPED tests/test_recursive_structures.py::TestGraphWithNestedDirs::test_graph_nested_with_levels \ntests/test_recursive_structures.py::TestHistogramWithComplexDb::test_histogram_complex_structure \n[gw8] [ 91%] SKIPPED tests/test_recursive_structures.py::TestHistogramWithComplexDb::test_histogram_complex_structure \n[gw3] [ 91%] RERUN tests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_short_options \ntests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_short_options \ntests/test_recursive_structures.py::TestInfoWithComplexDb::test_info_shows_all_paths \n[gw0] [ 91%] SKIPPED tests/test_recursive_structures.py::TestInfoWithComplexDb::test_info_shows_all_paths \ntests/test_recursive_structures.py::TestCgiWithComplexDb::test_cgi_complex_structure \n[gw8] [ 91%] SKIPPED tests/test_recursive_structures.py::TestCgiWithComplexDb::test_cgi_complex_structure \n[gw3] [ 91%] FAILED tests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_short_options \ntests/test_coverage_targeted.py::TestManualCommand::test_manual_command_exists \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_version_output \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_help_output \n[gw7] [ 92%] RERUN tests/test_over_50.py::TestMore::test_ls_with_path_variations1 \ntests/test_over_50.py::TestMore::test_ls_with_path_variations1 \n[gw5] [ 92%] RERUN tests/test_push_to_50_final.py::TestErrorPaths::test_ls_recursive_depth_boundary \ntests/test_push_to_50_final.py::TestErrorPaths::test_ls_recursive_depth_boundary \n[gw2] [ 92%] RERUN tests/test_over_50.py::TestMore::test_json_minsize_variations \ntests/test_over_50.py::TestMore::test_json_minsize_variations \n[gw5] [ 92%] FAILED tests/test_push_to_50_final.py::TestErrorPaths::test_ls_recursive_depth_boundary \ntests/test_push_to_50_final.py::TestErrorPaths::test_histogram_with_empty_database \n[gw4] [ 92%] RERUN tests/test_more_coverage.py::TestOptionFormatVariations::test_bytes_short_form \ntests/test_more_coverage.py::TestOptionFormatVariations::test_bytes_short_form \n[gw5] [ 92%] PASSED tests/test_push_to_50_final.py::TestErrorPaths::test_histogram_with_empty_database \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_index_help \n[gw6] [ 92%] RERUN tests/test_quick_database_ops.py::TestQuickOps::test_ls_basic_output \ntests/test_quick_database_ops.py::TestQuickOps::test_ls_basic_output \n[gw4] [ 92%] FAILED tests/test_more_coverage.py::TestOptionFormatVariations::test_bytes_short_form \ntests/test_quick_database_ops.py::TestQuickOps::test_xml_generates_xml \n[gw6] [ 92%] FAILED tests/test_quick_database_ops.py::TestQuickOps::test_ls_basic_output \ntests/test_quick_database_ops.py::TestQuickOps::test_info_shows_data \n[gw1] [ 92%] RERUN tests/test_final_coverage_push.py::TestDatabasePaths::test_absolute_database_path \ntests/test_final_coverage_push.py::TestDatabasePaths::test_absolute_database_path \n[gw1] [ 92%] FAILED tests/test_final_coverage_push.py::TestDatabasePaths::test_absolute_database_path \ntests/test_reach_50.py::TestLsMaxOptions::test_ls_all_options_combo1 \n[gw9] [ 92%] RERUN tests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_short_form \ntests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_short_form \n[gw9] [ 92%] FAILED tests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_short_form \ntests/test_reach_50.py::TestLsMaxOptions::test_ls_full_path_name_sort_levels \n[gw3] [ 92%] RERUN tests/test_coverage_targeted.py::TestManualCommand::test_manual_command_exists \ntests/test_coverage_targeted.py::TestManualCommand::test_manual_command_exists \n[gw8] [ 92%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_help_output \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_help_output \n[gw0] [ 92%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_version_output \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_version_output \n[gw7] [ 92%] RERUN tests/test_over_50.py::TestMore::test_ls_with_path_variations1 \ntests/test_over_50.py::TestMore::test_ls_with_path_variations1 \n[gw7] [ 92%] FAILED tests/test_over_50.py::TestMore::test_ls_with_path_variations1 \ntests/test_over_50.py::TestMore::test_ls_with_path_variations2 \n[gw2] [ 92%] RERUN tests/test_over_50.py::TestMore::test_json_minsize_variations \ntests/test_over_50.py::TestMore::test_json_minsize_variations \n[gw2] [ 92%] FAILED tests/test_over_50.py::TestMore::test_json_minsize_variations \ntests/test_over_50.py::TestMore::test_graph_size_variations \n[gw5] [ 92%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_index_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_index_help \n[gw4] [ 92%] RERUN tests/test_quick_database_ops.py::TestQuickOps::test_xml_generates_xml \ntests/test_quick_database_ops.py::TestQuickOps::test_xml_generates_xml \n[gw6] [ 92%] RERUN tests/test_quick_database_ops.py::TestQuickOps::test_info_shows_data \ntests/test_quick_database_ops.py::TestQuickOps::test_info_shows_data \n[gw2] [ 93%] PASSED tests/test_over_50.py::TestMore::test_graph_size_variations \ntests/test_over_50.py::TestMore::test_cgi_size_variations \n[gw1] [ 93%] RERUN tests/test_reach_50.py::TestLsMaxOptions::test_ls_all_options_combo1 \ntests/test_reach_50.py::TestLsMaxOptions::test_ls_all_options_combo1 \n[gw2] [ 93%] PASSED tests/test_over_50.py::TestMore::test_cgi_size_variations \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_topn_help \n[gw9] [ 93%] RERUN tests/test_reach_50.py::TestLsMaxOptions::test_ls_full_path_name_sort_levels \ntests/test_reach_50.py::TestLsMaxOptions::test_ls_full_path_name_sort_levels \n[gw8] [ 93%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_help_output \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_help_output \n[gw3] [ 93%] RERUN tests/test_coverage_targeted.py::TestManualCommand::test_manual_command_exists \ntests/test_coverage_targeted.py::TestManualCommand::test_manual_command_exists \n[gw8] [ 93%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_help_output \n[gw0] [ 93%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_version_output \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_version_output \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_manual_subcommand \n[gw3] [ 93%] FAILED tests/test_coverage_targeted.py::TestManualCommand::test_manual_command_exists \ntests/test_coverage_targeted.py::TestManualCommand::test_manual_documents_all_subcommands \n[gw0] [ 93%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_version_output \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_help_all \n[gw3] [ 93%] PASSED tests/test_coverage_targeted.py::TestManualCommand::test_manual_documents_all_subcommands \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_graph_help \n[gw7] [ 93%] RERUN tests/test_over_50.py::TestMore::test_ls_with_path_variations2 \ntests/test_over_50.py::TestMore::test_ls_with_path_variations2 \n[gw5] [ 93%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_index_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_index_help \n[gw4] [ 93%] RERUN tests/test_quick_database_ops.py::TestQuickOps::test_xml_generates_xml \ntests/test_quick_database_ops.py::TestQuickOps::test_xml_generates_xml \n[gw6] [ 93%] RERUN tests/test_quick_database_ops.py::TestQuickOps::test_info_shows_data \ntests/test_quick_database_ops.py::TestQuickOps::test_info_shows_data \n[gw4] [ 93%] FAILED tests/test_quick_database_ops.py::TestQuickOps::test_xml_generates_xml \ntests/test_quick_database_ops.py::TestQuickOps::test_json_generates_json \n[gw5] [ 93%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_index_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_ls_help \n[gw6] [ 93%] FAILED tests/test_quick_database_ops.py::TestQuickOps::test_info_shows_data \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_histogram_help \n[gw1] [ 93%] RERUN tests/test_reach_50.py::TestLsMaxOptions::test_ls_all_options_combo1 \ntests/test_reach_50.py::TestLsMaxOptions::test_ls_all_options_combo1 \n[gw2] [ 93%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_topn_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_topn_help \n[gw1] [ 93%] FAILED tests/test_reach_50.py::TestLsMaxOptions::test_ls_all_options_combo1 \ntests/test_reach_50.py::TestLsMaxOptions::test_ls_all_options_combo2 \n[gw9] [ 93%] RERUN tests/test_reach_50.py::TestLsMaxOptions::test_ls_full_path_name_sort_levels \ntests/test_reach_50.py::TestLsMaxOptions::test_ls_full_path_name_sort_levels \n[gw9] [ 93%] FAILED tests/test_reach_50.py::TestLsMaxOptions::test_ls_full_path_name_sort_levels \ntests/test_reach_50.py::TestMoreGraphCombinations::test_graph_all_visual_options \n[gw9] [ 93%] PASSED tests/test_reach_50.py::TestMoreGraphCombinations::test_graph_all_visual_options \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_index_dry_run \n[gw8] [ 93%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_manual_subcommand \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_manual_subcommand \n[gw0] [ 94%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_help_all \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_help_all \n[gw3] [ 94%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_graph_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_graph_help \n[gw7] [ 94%] RERUN tests/test_over_50.py::TestMore::test_ls_with_path_variations2 \ntests/test_over_50.py::TestMore::test_ls_with_path_variations2 \n[gw7] [ 94%] FAILED tests/test_over_50.py::TestMore::test_ls_with_path_variations2 \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_info_help \n[gw4] [ 94%] RERUN tests/test_quick_database_ops.py::TestQuickOps::test_json_generates_json \ntests/test_quick_database_ops.py::TestQuickOps::test_json_generates_json \n[gw5] [ 94%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_ls_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_ls_help \n[gw6] [ 94%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_histogram_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_histogram_help \n[gw2] [ 94%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_topn_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_topn_help \n[gw1] [ 94%] RERUN tests/test_reach_50.py::TestLsMaxOptions::test_ls_all_options_combo2 \ntests/test_reach_50.py::TestLsMaxOptions::test_ls_all_options_combo2 \n[gw2] [ 94%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_topn_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_json_help \n[gw9] [ 94%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_index_dry_run \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_index_dry_run \n[gw8] [ 94%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_manual_subcommand \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_manual_subcommand \n[gw8] [ 94%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_manual_subcommand \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_xml_help \n[gw3] [ 94%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_graph_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_graph_help \n[gw0] [ 94%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_help_all \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_help_all \n[gw3] [ 94%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_graph_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_ui_help \n[gw7] [ 94%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_info_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_info_help \n[gw0] [ 94%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_help_all \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_gui_help \n[gw4] [ 94%] RERUN tests/test_quick_database_ops.py::TestQuickOps::test_json_generates_json \ntests/test_quick_database_ops.py::TestQuickOps::test_json_generates_json \n[gw4] [ 94%] FAILED tests/test_quick_database_ops.py::TestQuickOps::test_json_generates_json \ntests/test_quick_database_ops.py::TestQuickOps::test_histogram_shows_distribution \n[gw6] [ 94%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_histogram_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_histogram_help \n[gw5] [ 94%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_ls_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_ls_help \n[gw6] [ 94%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_histogram_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_database_error_missing \n[gw5] [ 94%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_ls_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_cgi_help \n[gw1] [ 94%] RERUN tests/test_reach_50.py::TestLsMaxOptions::test_ls_all_options_combo2 \ntests/test_reach_50.py::TestLsMaxOptions::test_ls_all_options_combo2 \n[gw2] [ 94%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_json_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_json_help \n[gw1] [ 94%] FAILED tests/test_reach_50.py::TestLsMaxOptions::test_ls_all_options_combo2 \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_database_error_directory \n[gw9] [ 94%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_index_dry_run \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_index_dry_run \n[gw9] [ 94%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_index_dry_run \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_verbose_flag \n[gw8] [ 95%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_xml_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_xml_help \n[gw3] [ 95%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_ui_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_ui_help \n[gw7] [ 95%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_info_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_info_help \n[gw0] [ 95%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_gui_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_gui_help \n[gw7] [ 95%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_info_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_debug_flag \n[gw4] [ 95%] RERUN tests/test_quick_database_ops.py::TestQuickOps::test_histogram_shows_distribution \ntests/test_quick_database_ops.py::TestQuickOps::test_histogram_shows_distribution \n[gw6] [ 95%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_database_error_missing \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_database_error_missing \n[gw5] [ 95%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_cgi_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_cgi_help \n[gw2] [ 95%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_json_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_json_help \n[gw2] [ 95%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_json_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_quiet_flag \n[gw1] [ 95%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_database_error_directory \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_database_error_directory \n[gw8] [ 95%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_xml_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_xml_help \n[gw9] [ 95%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_verbose_flag \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_verbose_flag \n[gw8] [ 95%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_xml_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_invalid_command \n[gw3] [ 95%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_ui_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_ui_help \n[gw7] [ 95%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_debug_flag \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_debug_flag \n[gw0] [ 95%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_gui_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_gui_help \n[gw3] [ 95%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_ui_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_index_exclude_pattern \n[gw0] [ 95%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_gui_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_index_max_depth \n[gw4] [ 95%] RERUN tests/test_quick_database_ops.py::TestQuickOps::test_histogram_shows_distribution \ntests/test_quick_database_ops.py::TestQuickOps::test_histogram_shows_distribution \n[gw4] [ 95%] FAILED tests/test_quick_database_ops.py::TestQuickOps::test_histogram_shows_distribution \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_ls_levels_option \n[gw6] [ 95%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_database_error_missing \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_database_error_missing \n[gw6] [ 95%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_database_error_missing \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_graph_palette_option \n[gw5] [ 95%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_cgi_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_cgi_help \n[gw5] [ 95%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_cgi_help \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_cgi_mode_not_activated \n[gw2] [ 96%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_quiet_flag \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_quiet_flag \n[gw1] [ 96%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_database_error_directory \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_database_error_directory \n[gw1] [ 96%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_database_error_directory \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_environment_variable_handling \n[gw9] [ 96%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_verbose_flag \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_verbose_flag \n[gw8] [ 96%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_invalid_command \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_invalid_command \n[gw9] [ 96%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_verbose_flag \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_xdg_cache_home \n[gw7] [ 96%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_debug_flag \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_debug_flag \n[gw3] [ 96%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_index_exclude_pattern \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_index_exclude_pattern \n[gw0] [ 96%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_index_max_depth \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_index_max_depth \n[gw7] [ 96%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_debug_flag \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_home_directory_fallback \n[gw4] [ 96%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_ls_levels_option \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_ls_levels_option \n[gw6] [ 96%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_graph_palette_option \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_graph_palette_option \n[gw5] [ 96%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_cgi_mode_not_activated \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_cgi_mode_not_activated \n[gw2] [ 96%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_quiet_flag \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_quiet_flag \n[gw2] [ 96%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_quiet_flag \ntests/test_topn.py::test_topn_help \n[gw1] [ 96%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_environment_variable_handling \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_environment_variable_handling \n[gw2] [ 96%] PASSED tests/test_topn.py::test_topn_help \ntests/test_with_real_database.py::TestLsWithDatabase::test_ls_recursive \n[gw2] [ 97%] PASSED tests/test_with_real_database.py::TestLsWithDatabase::test_ls_recursive \ntests/test_with_real_database.py::TestLsWithDatabase::test_ls_with_levels \n[gw2] [ 97%] PASSED tests/test_with_real_database.py::TestLsWithDatabase::test_ls_with_levels \ntests/test_with_real_database.py::TestInfoWithDatabase::test_info_basic \n[gw2] [ 97%] PASSED tests/test_with_real_database.py::TestInfoWithDatabase::test_info_basic \ntests/test_with_real_database.py::TestInfoWithDatabase::test_info_with_bytes \n[gw2] [ 97%] PASSED tests/test_with_real_database.py::TestInfoWithDatabase::test_info_with_bytes \n[gw8] [ 97%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_invalid_command \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_invalid_command \ntests/test_with_real_database.py::TestInfoWithDatabase::test_info_with_apparent \n[gw2] [ 97%] PASSED tests/test_with_real_database.py::TestInfoWithDatabase::test_info_with_apparent \n[gw9] [ 97%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_xdg_cache_home \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_xdg_cache_home \ntests/test_with_real_database.py::TestHistogramWithDatabase::test_histogram_basic \n[gw2] [ 97%] PASSED tests/test_with_real_database.py::TestHistogramWithDatabase::test_histogram_basic \n[gw8] [ 97%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_invalid_command \ntests/test_topn.py::test_topn_nonexistent_database \ntests/test_with_real_database.py::TestHistogramWithDatabase::test_histogram_with_bytes \n[gw2] [ 97%] PASSED tests/test_with_real_database.py::TestHistogramWithDatabase::test_histogram_with_bytes \ntests/test_with_real_database.py::TestHistogramWithDatabase::test_histogram_with_base10 \n[gw2] [ 97%] PASSED tests/test_with_real_database.py::TestHistogramWithDatabase::test_histogram_with_base10 \n[gw8] [ 98%] PASSED tests/test_topn.py::test_topn_nonexistent_database \ntests/test_with_real_database.py::TestJsonWithDatabase::test_json_basic \n[gw8] [ 98%] PASSED tests/test_with_real_database.py::TestJsonWithDatabase::test_json_basic \ntests/test_with_real_database.py::TestJsonWithDatabase::test_json_with_apparent \n[gw2] [ 98%] PASSED tests/test_with_real_database.py::TestJsonWithDatabase::test_json_with_apparent \ntests/test_with_real_database.py::TestXmlWithDatabase::test_xml_basic \n[gw8] [ 98%] PASSED tests/test_with_real_database.py::TestXmlWithDatabase::test_xml_basic \ntests/test_with_real_database.py::TestJsonWithDatabase::test_json_with_min_size \n[gw2] [ 98%] PASSED tests/test_with_real_database.py::TestJsonWithDatabase::test_json_with_min_size \ntests/test_with_real_database.py::TestXmlWithDatabase::test_xml_with_apparent \n[gw8] [ 98%] PASSED tests/test_with_real_database.py::TestXmlWithDatabase::test_xml_with_apparent \ntests/test_with_real_database.py::TestXmlWithDatabase::test_xml_with_min_size \n[gw2] [ 98%] PASSED tests/test_with_real_database.py::TestXmlWithDatabase::test_xml_with_min_size \ntests/test_xml.py::test_xml_help \ntests/test_xml.py::test_xml_nonexistent_database \n[gw8] [ 98%] PASSED tests/test_xml.py::test_xml_help \n[gw3] [ 98%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_index_exclude_pattern \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_index_exclude_pattern \n[gw2] [ 98%] PASSED tests/test_xml.py::test_xml_nonexistent_database \n[gw7] [ 99%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_home_directory_fallback \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_home_directory_fallback \n[gw0] [ 99%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_index_max_depth \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_index_max_depth \n[gw3] [ 99%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_index_exclude_pattern \ntests/test_ui.py::test_ui_help \n[gw0] [ 99%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_index_max_depth \ntests/test_ui.py::test_ui_help_shows_all_options \n[gw4] [ 99%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_ls_levels_option \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_ls_levels_option \n[gw3] [ 99%] PASSED tests/test_ui.py::test_ui_help \n[gw0] [ 99%] PASSED tests/test_ui.py::test_ui_help_shows_all_options \n[gw4] [ 99%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_ls_levels_option \ntests/test_ui.py::test_ui_nonexistent_database \n[gw6] [ 99%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_graph_palette_option \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_graph_palette_option \n[gw4] [ 99%] PASSED tests/test_ui.py::test_ui_nonexistent_database \n[gw6] [ 99%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_graph_palette_option \ntests/test_with_real_database.py::TestLsWithDatabase::test_ls_basic \n[gw6] [ 99%] PASSED tests/test_with_real_database.py::TestLsWithDatabase::test_ls_basic \n[gw5] [ 99%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_cgi_mode_not_activated \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_cgi_mode_not_activated \n[gw5] [ 99%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_cgi_mode_not_activated \ntests/test_with_real_database.py::TestLsWithDatabase::test_ls_with_bytes \n[gw5] [ 99%] PASSED tests/test_with_real_database.py::TestLsWithDatabase::test_ls_with_bytes \n[gw1] [ 99%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_environment_variable_handling \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_environment_variable_handling \n[gw1] [ 99%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_environment_variable_handling \ntests/test_with_real_database.py::TestLsWithDatabase::test_ls_with_apparent \n[gw1] [ 99%] PASSED tests/test_with_real_database.py::TestLsWithDatabase::test_ls_with_apparent \n[gw9] [ 99%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_xdg_cache_home \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_xdg_cache_home \n[gw9] [ 99%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_xdg_cache_home \ntests/test_with_real_database.py::TestLsWithDatabase::test_ls_with_count \n[gw9] [ 99%] PASSED tests/test_with_real_database.py::TestLsWithDatabase::test_ls_with_count \n[gw7] [ 99%] RERUN tests/test_streamlined.py::TestNonDatabaseFeatures::test_home_directory_fallback \ntests/test_streamlined.py::TestNonDatabaseFeatures::test_home_directory_fallback \n[gw7] [ 99%] FAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_home_directory_fallback \ntests/test_with_real_database.py::TestLsWithDatabase::test_ls_with_classify \n[gw7] [100%] PASSED tests/test_with_real_database.py::TestLsWithDatabase::test_ls_with_classify \n\n=================================== FAILURES ===================================\n_____________ TestMoreLsCombinations.test_ls_bytes_apparent_count ______________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_bytes_apparent_count(self):\n \"\"\"Test ls with bytes, apparent, and count\"\"\"\n result = run(\"ls\", \"-b\", \"-a\", \"--count\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-b', '-a', '--count', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_50_percent.py:22: AssertionError\n_______________ TestManualSubcommand.test_manual_command_exists ________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_manual_command_exists(self):\n \"\"\"Test that the manual subcommand produces markdown-style documentation.\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n> assert b\"### Global options\" in result.stdout\nE assert b'### Global options' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_additional_coverage_phase2.py:16: AssertionError\n____________________ TestFinal.test_ls_color_various_paths _____________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_color_various_paths(self):\n \"\"\"Test ls color on various paths\"\"\"\n result = run(\"ls\", \"--color\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--color', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_absolutely_50.py:22: AssertionError\n_______________ TestCmdIndexCoverage.test_index_with_bytes_flag ________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_index_with_bytes_flag(self):\n \"\"\"Test index --bytes flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--bytes\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:57: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--bytes', '--database=/tmp/tmp7wwbcar8/test.db', '/tmp/tmp7wwbcar8/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n__________ TestDatabasePathHandling.test_database_short_form_no_space __________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_database_short_form_no_space(self):\n \"\"\"Test -ddatabase short form without space.\"\"\"\n> result = run(\"ls\", \"-d/tmp/test.db\")\n\ntests/test_coverage_improvement.py:228: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ls', '-d/tmp/test.db'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_____________ TestMoreLsCombinations.test_ls_classify_graph_ascii ______________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_classify_graph_ascii(self):\n \"\"\"Test ls with classify, graph, and ascii\"\"\"\n result = run(\"ls\", \"-F\", \"-g\", \"--ascii\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-F', '-g', '--ascii', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_50_percent.py:27: AssertionError\n___________ TestManualCommand.test_manual_command_generates_markdown ___________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_manual_command_generates_markdown(self):\n \"\"\"Test manual command produces markdown documentation\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n # Check for markdown headers\n> assert b\"### Global options\" in result.stdout\nE assert b'### Global options' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_coverage_boost.py:25: AssertionError\n____________ TestManualSubcommand.test_manual_shows_all_subcommands ____________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_manual_shows_all_subcommands(self):\n \"\"\"Test that manual output includes all major subcommands.\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n> assert b\"### duc index\" in result.stdout\nE assert b'### duc index' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_additional_coverage_phase2.py:23: AssertionError\n_____________________ TestFinal.test_xml_nested_deep_paths _____________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_xml_nested_deep_paths(self):\n \"\"\"Test XML on deeply nested paths\"\"\"\n paths = [\n \"/tmp/complex_test\",\n \"/tmp/complex_test/subdir1\",\n \"/tmp/complex_test/subdir1/subdir2\"\n ]\n for path in paths:\n result = run(\"xml\", f\"--database={COMPLEX_DB}\", path)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_absolutely_50.py:44: AssertionError\n_______________ TestCmdIndexCoverage.test_index_with_force_flag ________________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_index_with_force_flag(self):\n \"\"\"Test index --force flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--force\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:33: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--force', '--database=/tmp/tmpq534oxyl/test.db', '/tmp/tmpq534oxyl/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n____________ TestCmdIndexCoverage.test_index_with_check_hard_links _____________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_index_with_check_hard_links(self):\n \"\"\"Test index --check-hard-links flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--check-hard-links\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:69: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--check-hard-links', '--database=/tmp/tmpflg0bwgl/test.db', '/tmp/tmpflg0bwgl/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_______________ TestGraphCommandOptions.test_graph_palette_size ________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_graph_palette_size(self):\n \"\"\"Test graph with size palette.\"\"\"\n> result = run(\"graph\", \"--palette=size\", \"--help\")\n\ntests/test_coverage_improvement.py:237: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--palette=size', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n______________ TestMoreLsCombinations.test_ls_recursive_name_sort ______________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_recursive_name_sort(self):\n \"\"\"Test ls recursive with name sort\"\"\"\n result = run(\"ls\", \"-R\", \"-n\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-R', '-n', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_50_percent.py:32: AssertionError\n_______ TestManualCommand.test_manual_command_documents_all_subcommands ________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_manual_command_documents_all_subcommands(self):\n \"\"\"Test manual documents all major subcommands\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n subcommands = [b\"help\", b\"histogram\", b\"index\", b\"info\", b\"ls\",\n b\"topn\", b\"xml\", b\"json\", b\"graph\", b\"cgi\", b\"gui\", b\"ui\"]\n for cmd in subcommands:\n> assert b\"### duc \" + cmd in result.stdout\nE assert (b'### duc ' + b'help') in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_coverage_boost.py:41: AssertionError\n_____________ TestManualSubcommand.test_manual_shows_option_format _____________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_manual_shows_option_format(self):\n \"\"\"Test that manual output uses markdown formatting for options.\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n # Check for markdown-style formatting\n> assert b\"`--debug`:\" in result.stdout\nE assert b'`--debug`:' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_additional_coverage_phase2.py:36: AssertionError\n________________ TestMinSizeFiltering.test_json_min_size_large _________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_json_min_size_large(self):\n \"\"\"Test JSON with large min size\"\"\"\n result = run(\"json\", \"--min_size=1000000\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--min_size=1000000', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:91: AssertionError\n_____________ TestRecursiveListing.test_ls_recursive_with_levels_0 _____________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_recursive_with_levels_0(self):\n \"\"\"Test ls with levels=0\"\"\"\n result = run(\"ls\", \"--recursive\", \"--levels=0\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--recursive', '--levels=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:21: AssertionError\n____________________ TestFinal.test_json_nested_deep_paths _____________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_json_nested_deep_paths(self):\n \"\"\"Test JSON on deeply nested paths\"\"\"\n paths = [\n \"/tmp/complex_test\",\n \"/tmp/complex_test/subdir1\",\n \"/tmp/complex_test/subdir1/subdir2\"\n ]\n for path in paths:\n result = run(\"json\", f\"--database={COMPLEX_DB}\", path)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_absolutely_50.py:56: AssertionError\n______________ TestCmdIndexCoverage.test_index_with_progress_flag ______________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_index_with_progress_flag(self):\n \"\"\"Test index --progress flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--progress\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:45: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--progress', '--database=/tmp/tmpavonhtlw/test.db', '/tmp/tmpavonhtlw/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n______________________ TestNameSorting.test_ls_name_sort _______________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_name_sort(self):\n \"\"\"Test ls sorts by name\"\"\"\n result = run(\"ls\", \"--name-sort\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--name-sort', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:186: AssertionError\n_____________ TestCmdIndexCoverage.test_index_with_hide_file_names _____________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_index_with_hide_file_names(self):\n \"\"\"Test index --hide-file-names flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--hide-file-names\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:81: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--hide-file-names', '--database=/tmp/tmpg_hw_f4n/test.db', '/tmp/tmpg_hw_f4n/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n______________ TestGraphCommandOptions.test_graph_palette_rainbow ______________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_graph_palette_rainbow(self):\n \"\"\"Test graph with rainbow palette.\"\"\"\n> result = run(\"graph\", \"--palette=rainbow\", \"--help\")\n\ntests/test_coverage_improvement.py:243: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--palette=rainbow', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n______ TestManualCommand.test_manual_command_includes_option_descriptions ______\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_manual_command_includes_option_descriptions(self):\n \"\"\"Test manual includes detailed option descriptions\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n # Check for common option descriptions\n assert b\"increase verbosity\" in result.stdout\n> assert b\"database file\" in result.stdout\nE assert b'database file' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_coverage_boost.py:49: AssertionError\n___________________ TestLsColorASCII.test_ls_color_classify ____________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_color_classify(self):\n \"\"\"Test ls with color and classify\"\"\"\n result = run(\"ls\", \"-c\", \"-F\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-c', '-F', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_50_percent.py:64: AssertionError\n_____________ TestManualSubcommand.test_manual_shows_command_usage _____________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_manual_shows_command_usage(self):\n \"\"\"Test that manual output includes usage patterns for commands.\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n # Should show usage patterns\n> assert b\"Options for command\" in result.stdout\nE assert b'Options for command' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_additional_coverage_phase2.py:54: AssertionError\n_________________ TestMinSizeFiltering.test_xml_min_size_zero __________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_xml_min_size_zero(self):\n \"\"\"Test XML with min_size=0\"\"\"\n result = run(\"xml\", \"--min_size=0\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--min_size=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:98: AssertionError\n____________ TestRecursiveListing.test_ls_recursive_with_levels_10 _____________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_recursive_with_levels_10(self):\n \"\"\"Test ls with high level count\"\"\"\n result = run(\"ls\", \"--recursive\", \"--levels=10\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--recursive', '--levels=10', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:26: AssertionError\n_____________________ TestFinal.test_ls_full_path_all_dirs _____________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_full_path_all_dirs(self):\n \"\"\"Test ls full-path on all directories\"\"\"\n result = run(\"ls\", \"--full-path\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--full-path', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_absolutely_50.py:63: AssertionError\n___________________ TestGraphCommandOptions.test_graph_dark ____________________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_graph_dark(self):\n \"\"\"Test graph dark flag.\"\"\"\n> result = run(\"graph\", \"--dark\", \"--help\")\n\ntests/test_coverage_improvement.py:322: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--dark', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_____________ TestCmdIndexCoverage.test_index_with_one_file_system _____________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_index_with_one_file_system(self):\n \"\"\"Test index --one-file-system flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--one-file-system\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:93: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--one-file-system', '--database=/tmp/tmpugn_l9wn/test.db', '/tmp/tmpugn_l9wn/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_________________ TestFullPathMode.test_ls_full_path_recursive _________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_full_path_recursive(self):\n \"\"\"Test ls full-path with recursive\"\"\"\n result = run(\"ls\", \"--full-path\", \"--recursive\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--full-path', '--recursive', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:236: AssertionError\n_____________ TestGraphCommandOptions.test_graph_palette_greyscale _____________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_graph_palette_greyscale(self):\n \"\"\"Test graph with greyscale palette.\"\"\"\n> result = run(\"graph\", \"--palette=greyscale\", \"--help\")\n\ntests/test_coverage_improvement.py:249: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--palette=greyscale', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_____________________ TestLsColorASCII.test_ls_color_graph _____________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_color_graph(self):\n \"\"\"Test ls with color and graph\"\"\"\n result = run(\"ls\", \"--color\", \"--graph\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--color', '--graph', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_50_percent.py:69: AssertionError\n_________________ TestMinSizeFiltering.test_json_min_size_zero _________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_json_min_size_zero(self):\n \"\"\"Test JSON with min_size=0\"\"\"\n result = run(\"json\", \"--min_size=0\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--min_size=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:104: AssertionError\n__________________ TestSizeDisplayFormats.test_ls_bytes_exact __________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_bytes_exact(self):\n \"\"\"Test ls shows exact bytes\"\"\"\n result = run(\"ls\", \"--bytes\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--bytes', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:35: AssertionError\n____________________ TestFinal.test_histogram_all_databases ____________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_histogram_all_databases(self):\n \"\"\"Test histogram on both databases\"\"\"\n result = run(\"histogram\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_absolutely_50.py:70: AssertionError\n____________________ TestGraphCommandOptions.test_graph_dpi ____________________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_graph_dpi(self):\n \"\"\"Test graph dpi option.\"\"\"\n> result = run(\"graph\", \"--dpi=150\", \"--help\")\n\ntests/test_coverage_improvement.py:328: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--dpi=150', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n______________ TestCmdIndexCoverage.test_index_with_uncompressed _______________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_index_with_uncompressed(self):\n \"\"\"Test index --uncompressed flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--uncompressed\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:105: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--uncompressed', '--database=/tmp/tmptuu1jdz9/test.db', '/tmp/tmptuu1jdz9/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_______________________ TestAsciiMode.test_ls_ascii_tree _______________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_ascii_tree(self):\n \"\"\"Test ls ASCII tree characters\"\"\"\n result = run(\"ls\", \"--ascii\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--ascii', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:244: AssertionError\n____________ TestGraphCommandOptions.test_graph_palette_monochrome _____________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_graph_palette_monochrome(self):\n \"\"\"Test graph with monochrome palette.\"\"\"\n> result = run(\"graph\", \"--palette=monochrome\", \"--help\")\n\ntests/test_coverage_improvement.py:255: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--palette=monochrome', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n______________ TestXmlJsonMinSizeVariations.test_xml_min_size_10 _______________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_xml_min_size_10(self):\n \"\"\"Test XML with min_size 10\"\"\"\n result = run(\"xml\", \"-s\", \"10\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '-s', '10', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_50_percent.py:95: AssertionError\n_______________________ TestCountMode.test_ls_count_mode _______________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_count_mode(self):\n \"\"\"Test ls with count instead of size\"\"\"\n result = run(\"ls\", \"--count\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--count', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:113: AssertionError\n_________________ TestSizeDisplayFormats.test_info_bytes_exact _________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_info_bytes_exact(self):\n \"\"\"Test info shows exact bytes\"\"\"\n result = run(\"info\", \"--bytes\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--bytes', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:42: AssertionError\n______________________ TestFinal.test_info_all_databases _______________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_info_all_databases(self):\n \"\"\"Test info on both databases\"\"\"\n result = run(\"info\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_absolutely_50.py:79: AssertionError\n__________________ TestInfoCommandOptions.test_info_apparent ___________________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_info_apparent(self):\n \"\"\"Test info with apparent flag.\"\"\"\n> result = run(\"info\", \"--apparent\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:337: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'info', '--apparent', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_____________ TestEvenMoreCombinations.test_ls_directory_recursive _____________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_directory_recursive(self):\n \"\"\"Test ls -D with recursive\"\"\"\n result = run(\"ls\", \"-D\", \"-R\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-D', '-R', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_final_14_lines.py:21: AssertionError\n_________________ TestCmdIndexCoverage.test_index_with_buckets _________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_index_with_buckets(self):\n \"\"\"Test index --buckets flag with value.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--buckets=32\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:117: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--buckets=32', '--database=/tmp/tmp7ueft6uv/test.db', '/tmp/tmp7ueft6uv/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n______________ TestGraphCommandOptions.test_graph_palette_classic ______________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_graph_palette_classic(self):\n \"\"\"Test graph with classic palette.\"\"\"\n> result = run(\"graph\", \"--palette=classic\", \"--help\")\n\ntests/test_coverage_improvement.py:261: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--palette=classic', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n______________ TestXmlJsonMinSizeVariations.test_json_min_size_10 ______________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_json_min_size_10(self):\n \"\"\"Test JSON with min_size 10\"\"\"\n result = run(\"json\", \"-s\", \"10\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '-s', '10', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_50_percent.py:101: AssertionError\n____________________ TestColorOutput.test_ls_color_with_tty ____________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_color_with_tty(self):\n \"\"\"Test ls color option\"\"\"\n result = run(\"ls\", \"--color\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--color', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:52: AssertionError\n____________________ TestInfoCommandOptions.test_info_bytes ____________________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_info_bytes(self):\n \"\"\"Test info with bytes flag.\"\"\"\n> result = run(\"info\", \"--bytes\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:343: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'info', '--bytes', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n____________ TestApparentVsActualSize.test_info_apparent_vs_actual _____________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_info_apparent_vs_actual(self):\n \"\"\"Test info shows different sizes for apparent vs actual\"\"\"\n result1 = run(\"info\", f\"--database={TEST_DB}\")\n result2 = run(\"info\", \"--apparent\", f\"--database={TEST_DB}\")\n> assert result1.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:137: AssertionError\n________________ TestEvenMoreCombinations.test_xml_all_subdirs _________________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_xml_all_subdirs(self):\n \"\"\"Test XML on all subdirectories\"\"\"\n result = run(\"xml\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_14_lines.py:26: AssertionError\n__________________ TestCmdIndexCoverage.test_index_with_topn ___________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_index_with_topn(self):\n \"\"\"Test index --topn flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--topn=10\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:129: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--topn=10', '--database=/tmp/tmpez8_3wdz/test.db', '/tmp/tmpez8_3wdz/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n______________ TestGraphCommandOptions.test_graph_output_formats _______________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_graph_output_formats(self):\n \"\"\"Test graph output format options.\"\"\"\n for fmt in [\"png\", \"svg\", \"pdf\", \"html\"]:\n> result = run(\"graph\", f\"--output=/tmp/test.{fmt}\", \"--help\")\n\ntests/test_coverage_improvement.py:268: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--output=/tmp/test.png', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n___________________ TestLsRecursiveOptions.test_ls_recursive ___________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_recursive(self):\n \"\"\"Test ls --recursive\"\"\"\n result = run(\"ls\", \"--recursive\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--recursive', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:21: AssertionError\n______________ TestXmlJsonMinSizeVariations.test_xml_min_size_100 ______________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_xml_min_size_100(self):\n \"\"\"Test XML with min_size 100\"\"\"\n result = run(\"xml\", \"--min_size=100\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--min_size=100', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_50_percent.py:107: AssertionError\n__________________ TestInfoCommandOptions.test_info_histogram __________________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_info_histogram(self):\n \"\"\"Test info with histogram flag.\"\"\"\n> result = run(\"info\", \"--histogram\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:349: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'info', '--histogram', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n__________ TestMultipleOptionCombinations.test_ls_all_display_options __________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_all_display_options(self):\n \"\"\"Test ls with all display options\"\"\"\n result = run(\"ls\", \"--bytes\", \"--classify\", \"--graph\", \"--ascii\", \"--count\",\n f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--bytes', '--classify', '--graph', '--ascii', '--count', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:204: AssertionError\n________________ TestApparentVsActualSize.test_ls_apparent_size ________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_apparent_size(self):\n \"\"\"Test ls with apparent size\"\"\"\n result = run(\"ls\", \"--apparent\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--apparent', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:145: AssertionError\n_________________ TestMinSizeFiltering.test_xml_min_size_large _________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_xml_min_size_large(self):\n \"\"\"Test XML with large min size filters everything\"\"\"\n result = run(\"xml\", \"--min_size=1000000\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--min_size=1000000', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:84: AssertionError\n_________________ TestDatabasePaths.test_database_with_equals __________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_database_with_equals(self):\n \"\"\"Test database option with equals sign\"\"\"\n result = run(\"info\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:281: AssertionError\n________________ TestEvenMoreCombinations.test_json_all_subdirs ________________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_json_all_subdirs(self):\n \"\"\"Test JSON on all subdirectories\"\"\"\n result = run(\"json\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_14_lines.py:35: AssertionError\n________________ TestCmdIndexCoverage.test_index_with_topn_min _________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_index_with_topn_min(self):\n \"\"\"Test index --topn-min flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--topn-min=1024\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:141: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--topn-min=1024', '--database=/tmp/tmp7zt9adv5/test.db', '/tmp/tmp7zt9adv5/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n________________ TestGraphCommandOptions.test_graph_size_option ________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_graph_size_option(self):\n \"\"\"Test graph size option.\"\"\"\n> result = run(\"graph\", \"--size=1024\", \"--help\")\n\ntests/test_coverage_improvement.py:274: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--size=1024', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n__________________ TestLsRecursiveOptions.test_ls_with_levels __________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_with_levels(self):\n \"\"\"Test ls --levels\"\"\"\n result = run(\"ls\", \"--levels=1\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--levels=1', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:27: AssertionError\n_____________ TestXmlJsonMinSizeVariations.test_json_min_size_100 ______________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_json_min_size_100(self):\n \"\"\"Test JSON with min_size 100\"\"\"\n result = run(\"json\", \"--min_size=100\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--min_size=100', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_50_percent.py:112: AssertionError\n________________ TestInfoCommandOptions.test_info_short_options ________________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_info_short_options(self):\n \"\"\"Test info with short options.\"\"\"\n> result = run(\"info\", \"-a\", \"-b\", \"-H\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:355: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'info', '-a', '-b', '-H', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_____________ TestMultipleOptionCombinations.test_info_all_options _____________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_info_all_options(self):\n \"\"\"Test info with all options\"\"\"\n result = run(\"info\", \"--bytes\", \"--apparent\", \"--histogram\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--bytes', '--apparent', '--histogram', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:210: AssertionError\n____________ TestApparentVsActualSize.test_histogram_apparent_size _____________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_histogram_apparent_size(self):\n \"\"\"Test histogram with apparent size\"\"\"\n result = run(\"histogram\", \"--apparent\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '--apparent', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:151: AssertionError\n_______________ TestDatabasePaths.test_database_short_with_space _______________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_database_short_with_space(self):\n \"\"\"Test short database option with space\"\"\"\n result = run(\"info\", \"-d\", TEST_DB)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:286: AssertionError\n_____________ TestEvenMoreCombinations.test_ls_levels_0_through_5 ______________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_levels_0_through_5(self):\n \"\"\"Test ls with different level values\"\"\"\n for level in [0, 1, 2, 3]:\n result = run(\"ls\", f\"--levels={level}\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--levels=0', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_final_14_lines.py:45: AssertionError\n___________________ TestCmdIndexCoverage.test_index_with_uid ___________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_index_with_uid(self):\n \"\"\"Test index --uid flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--uid=1000\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:153: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--uid=1000', '--database=/tmp/tmpbmrfng6c/test.db', '/tmp/tmpbmrfng6c/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_____________ TestExactly50.test_ls_recursive_all_levels_all_paths _____________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_recursive_all_levels_all_paths(self):\n \"\"\"Test ls recursive with different levels on all paths\"\"\"\n paths = [\"/tmp/complex_test\", \"/tmp/complex_test/subdir1\"]\n for path in paths:\n for level in [1, 2, 3, 4]:\n result = run(\"ls\", \"-R\", f\"--levels={level}\", f\"--database={COMPLEX_DB}\", path)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-R', '--levels=1', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_exactly_50_percent.py:24: AssertionError\n_______________ TestGraphCommandOptions.test_graph_levels_option _______________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_graph_levels_option(self):\n \"\"\"Test graph levels option.\"\"\"\n> result = run(\"graph\", \"--levels=5\", \"--help\")\n\ntests/test_coverage_improvement.py:280: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--levels=5', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_________________ TestLsRecursiveOptions.test_ls_with_levels_2 _________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_with_levels_2(self):\n \"\"\"Test ls with different level\"\"\"\n result = run(\"ls\", \"--levels=2\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--levels=2', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:32: AssertionError\n_____________ TestHistogramCommandOptions.test_histogram_apparent ______________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_histogram_apparent(self):\n \"\"\"Test histogram with apparent flag.\"\"\"\n> result = run(\"histogram\", \"--apparent\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:364: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'histogram', '--apparent', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n____________ TestHistogramAllCombinations.test_histogram_all_flags _____________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_histogram_all_flags(self):\n \"\"\"Test histogram with all flags\"\"\"\n result = run(\"histogram\", \"-a\", \"-b\", \"-t\", f\"--database={COMPLEX_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '-a', '-b', '-t', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_50_percent.py:134: AssertionError\n________________ TestVerboseDebugOutput.test_info_with_verbose _________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_info_with_verbose(self):\n \"\"\"Test info with verbose flag\"\"\"\n result = run(\"info\", \"--verbose\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--verbose', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Reading from database \"/tmp/test.db\"\\nError opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:227: AssertionError\n_____________ TestClassifyOption.test_ls_classify_shows_indicators _____________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_classify_shows_indicators(self):\n \"\"\"Test ls classify adds indicators\"\"\"\n result = run(\"ls\", \"--classify\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--classify', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:177: AssertionError\n____________________ TestLsEdgeCases.test_ls_directory_flag ____________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_directory_flag(self):\n \"\"\"Test ls -D shows directory itself\"\"\"\n result = run(\"ls\", \"-D\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-D', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_final_push.py:22: AssertionError\n________________ TestCmdIndexCoverage.test_index_with_username _________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_index_with_username(self):\n \"\"\"Test index --username flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--username=root\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:165: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--username=root', '--database=/tmp/tmppktw4q7w/test.db', '/tmp/tmppktw4q7w/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_________________ TestGraphCommandOptions.test_graph_ring_gap __________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_graph_ring_gap(self):\n \"\"\"Test graph ring-gap option.\"\"\"\n> result = run(\"graph\", \"--ring-gap=2\", \"--help\")\n\ntests/test_coverage_improvement.py:286: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--ring-gap=2', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n________________ TestInfoHistogram.test_info_histogram_display _________________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_info_histogram_display(self):\n \"\"\"Test info shows histogram\"\"\"\n result = run(\"info\", \"-H\", f\"--database={COMPLEX_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-H', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:111: AssertionError\n_____________________ TestLsRecursiveOptions.test_ls_color _____________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_color(self):\n \"\"\"Test ls --color\"\"\"\n result = run(\"ls\", \"--color\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--color', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:37: AssertionError\n___________________ TestXmlJsonEdgeCases.test_json_deep_path ___________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_json_deep_path(self):\n \"\"\"Test JSON with deep path\"\"\"\n result = run(\"json\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test/subdir1/subdir2\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--database=/tmp/complex.db', '/tmp/complex_test/subdir1/subdir2'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:57: AssertionError\n_______________ TestHistogramCommandOptions.test_histogram_bytes _______________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_histogram_bytes(self):\n \"\"\"Test histogram with bytes flag.\"\"\"\n> result = run(\"histogram\", \"--bytes\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:370: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'histogram', '--bytes', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_________________ TestInfoAllCombinations.test_info_all_flags __________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_info_all_flags(self):\n \"\"\"Test info with all flags\"\"\"\n result = run(\"info\", \"-a\", \"-b\", \"-H\", f\"--database={COMPLEX_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-a', '-b', '-H', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_50_percent.py:143: AssertionError\n_________________ TestVerboseDebugOutput.test_ls_with_verbose __________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_with_verbose(self):\n \"\"\"Test ls with verbose flag\"\"\"\n result = run(\"ls\", \"-v\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-v', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Reading from database \"/tmp/test.db\"\\nError opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:233: AssertionError\n__________________ TestXmlJsonRobustness.test_json_root_path ___________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_json_root_path(self):\n \"\"\"Test JSON with root path\"\"\"\n result = run(\"json\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:59: AssertionError\n_________________ TestLsEdgeCases.test_ls_recursive_levels_max _________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_recursive_levels_max(self):\n \"\"\"Test ls with maximum levels\"\"\"\n result = run(\"ls\", \"-R\", \"-l\", \"99\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-R', '-l', '99', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_final_push.py:27: AssertionError\n_______________ TestCmdIndexCoverage.test_index_with_fs_exclude ________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_index_with_fs_exclude(self):\n \"\"\"Test index --fs-exclude flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--fs-exclude=tmpfs,proc\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:177: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--fs-exclude=tmpfs,proc', '--database=/tmp/tmpk7x_z_o7/test.db', '/tmp/tmpk7x_z_o7/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n___________________ TestGraphCommandOptions.test_graph_fuzz ____________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_graph_fuzz(self):\n \"\"\"Test graph fuzz option.\"\"\"\n> result = run(\"graph\", \"--fuzz=0.5\", \"--help\")\n\ntests/test_coverage_improvement.py:292: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--fuzz=0.5', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n__________ TestLsFullPathRecursive.test_ls_full_path_recursive_nested __________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_full_path_recursive_nested(self):\n \"\"\"Test full-path on nested structure\"\"\"\n result = run(\"ls\", \"--full-path\", \"-R\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--full-path', '-R', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_final_push.py:123: AssertionError\n___________________ TestLsRecursiveOptions.test_ls_dirs_only ___________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_dirs_only(self):\n \"\"\"Test ls --dirs-only\"\"\"\n result = run(\"ls\", \"--dirs-only\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--dirs-only', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:43: AssertionError\n______________ TestXmlJsonEdgeCases.test_xml_apparent_exclude_min ______________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_xml_apparent_exclude_min(self):\n \"\"\"Test XML with all filters\"\"\"\n result = run(\"xml\", \"-a\", \"-x\", \"-s\", \"1\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '-a', '-x', '-s', '1', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:64: AssertionError\n______________ TestHistogramCommandOptions.test_histogram_base10 _______________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_histogram_base10(self):\n \"\"\"Test histogram with base10 flag.\"\"\"\n> result = run(\"histogram\", \"--base10\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:376: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'histogram', '--base10', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_______________ TestVerboseDebugOutput.test_histogram_with_debug _______________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_histogram_with_debug(self):\n \"\"\"Test histogram with debug flag\"\"\"\n result = run(\"histogram\", \"--debug\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '--debug', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Reading from database \"/tmp/test.db\"\\nError opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:239: AssertionError\n_____________ TestXmlJsonRobustness.test_xml_apparent_and_min_size _____________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_xml_apparent_and_min_size(self):\n \"\"\"Test XML with multiple filters\"\"\"\n result = run(\"xml\", \"--apparent\", \"--min_size=0\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--apparent', '--min_size=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:65: AssertionError\n___________________ TestXmlJsonEdgeCases.test_xml_deep_path ____________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_xml_deep_path(self):\n \"\"\"Test XML with deep path\"\"\"\n result = run(\"xml\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test/subdir1/subdir2\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--database=/tmp/complex.db', '/tmp/complex_test/subdir1/subdir2'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:50: AssertionError\n_______________ TestCmdIndexCoverage.test_index_with_fs_include ________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_index_with_fs_include(self):\n \"\"\"Test index --fs-include flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--fs-include=ext4,xfs\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:189: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--fs-include=ext4,xfs', '--database=/tmp/tmpv3x2vgy7/test.db', '/tmp/tmpv3x2vgy7/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_________________ TestGraphCommandOptions.test_graph_gradient __________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_graph_gradient(self):\n \"\"\"Test graph gradient flag.\"\"\"\n> result = run(\"graph\", \"--gradient\", \"--help\")\n\ntests/test_coverage_improvement.py:298: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--gradient', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_______________ TestLast10Lines.test_ls_every_option_combination _______________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_every_option_combination(self):\n \"\"\"Test ls with every option\"\"\"\n result = run(\"ls\", \"-a\", \"-b\", \"-F\", \"-c\", \"-g\", \"-R\", \"-n\", \"-D\",\n \"--ascii\", \"--count\", \"--dirs-only\", \"--full-path\",\n \"--levels=2\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-a', '-b', '-F', '-c', '-g', '-R', '-n', '-D', '--ascii', '--count', '--dirs-only', '--full-path', '--levels=2', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_last_10_lines.py:34: AssertionError\n___________________ TestXmlJsonRobustness.test_xml_root_path ___________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_xml_root_path(self):\n \"\"\"Test XML with root path\"\"\"\n result = run(\"xml\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:53: AssertionError\n_____________ TestXmlJsonEdgeCases.test_json_apparent_exclude_min ______________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_json_apparent_exclude_min(self):\n \"\"\"Test JSON with all filters\"\"\"\n result = run(\"json\", \"-a\", \"-x\", \"-s\", \"1\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '-a', '-x', '-s', '1', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:71: AssertionError\n___________ TestHistogramCommandOptions.test_histogram_short_options ___________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_histogram_short_options(self):\n \"\"\"Test histogram with short options.\"\"\"\n> result = run(\"histogram\", \"-a\", \"-b\", \"-t\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:382: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'histogram', '-a', '-b', '-t', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n______________ TestOptionFormatVariations.test_database_long_form ______________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_database_long_form(self):\n \"\"\"Test long form database option\"\"\"\n result = run(\"info\", \"--database=/tmp/test.db\")\n # Database works now\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:205: AssertionError\n__________________ TestVerboseDebugOutput.test_xml_with_quiet __________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_xml_with_quiet(self):\n \"\"\"Test XML with quiet flag\"\"\"\n result = run(\"xml\", \"--quiet\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--quiet', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:245: AssertionError\n____________ TestXmlJsonRobustness.test_json_apparent_and_min_size _____________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_json_apparent_and_min_size(self):\n \"\"\"Test JSON with multiple filters\"\"\"\n result = run(\"json\", \"--apparent\", \"--min_size=0\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--apparent', '--min_size=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:71: AssertionError\n________________ TestCmdIndexCoverage.test_index_short_options _________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_index_short_options(self):\n \"\"\"Test index with short options.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"-b\", \"-p\", f\"-d{dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:201: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '-b', '-p', '-d/tmp/tmpfhp7yx5j/test.db', '/tmp/tmpfhp7yx5j/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n___________________ TestGraphCommandOptions.test_graph_bytes ___________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_graph_bytes(self):\n \"\"\"Test graph bytes flag.\"\"\"\n> result = run(\"graph\", \"--bytes\", \"--help\")\n\ntests/test_coverage_improvement.py:304: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--bytes', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n______________ TestOptionFormatVariations.test_apparent_long_form ______________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_apparent_long_form(self):\n \"\"\"Test long form apparent option\"\"\"\n result = run(\"info\", \"--apparent\", \"--database=/tmp/test.db\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--apparent', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:232: AssertionError\n___________ TestLast10Lines.test_xml_json_all_combinations_all_paths ___________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_xml_json_all_combinations_all_paths(self):\n \"\"\"Test XML and JSON with all option combinations on all paths\"\"\"\n paths = [\"/tmp/complex_test\", \"/tmp/complex_test/subdir1\",\n \"/tmp/complex_test/subdir1/subdir2\"]\n for path in paths:\n result = run(\"xml\", \"-a\", \"-x\", \"-s\", \"10\", f\"--database={COMPLEX_DB}\", path)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '-a', '-x', '-s', '10', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_last_10_lines.py:55: AssertionError\n_____________ TestHistogramVariations.test_histogram_base10_bytes ______________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_histogram_base10_bytes(self):\n \"\"\"Test histogram with base10 and bytes\"\"\"\n result = run(\"histogram\", \"-t\", \"-b\", f\"--database={COMPLEX_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '-t', '-b', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:96: AssertionError\n__________________ TestTopnCommandOptions.test_topn_apparent ___________________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_topn_apparent(self):\n \"\"\"Test topn with apparent flag.\"\"\"\n> result = run(\"topn\", \"--apparent\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:391: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'topn', '--apparent', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_____________ TestOptionFormatVariations.test_database_short_form ______________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_database_short_form(self):\n \"\"\"Test short form database option\"\"\"\n result = run(\"info\", \"-d\", \"/tmp/test.db\")\n # Database works now\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:212: AssertionError\n_________________ TestShortFormOptions.test_info_short_options _________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_info_short_options(self):\n \"\"\"Test info with all short options\"\"\"\n result = run(\"info\", \"-a\", \"-b\", \"-d\", TEST_DB)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-a', '-b', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:254: AssertionError\n___________ TestDatabasePathHandling.test_database_with_equals_sign ____________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_database_with_equals_sign(self):\n \"\"\"Test --database=path format.\"\"\"\n> result = run(\"ls\", \"--database=/tmp/test.db\")\n\ntests/test_coverage_improvement.py:210: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ls', '--database=/tmp/test.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_________________ TestGraphCommandOptions.test_graph_apparent __________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_graph_apparent(self):\n \"\"\"Test graph apparent flag.\"\"\"\n> result = run(\"graph\", \"--apparent\", \"--help\")\n\ntests/test_coverage_improvement.py:310: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--apparent', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_________________ TestEdgeCases.test_multiple_database_options _________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_multiple_database_options(self):\n \"\"\"Test multiple database options (last wins)\"\"\"\n result = run(\"info\", \"-d\", \"/first.db\", \"--database=/tmp/test.db\")\n # Last wins, should use /tmp/test.db which exists\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-d', '/first.db', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:472: AssertionError\n_____________ TestOptionFormatVariations.test_apparent_short_form ______________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_apparent_short_form(self):\n \"\"\"Test short form apparent option\"\"\"\n result = run(\"info\", \"-a\", \"-d\", \"/tmp/test.db\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-a', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:240: AssertionError\n________________ TestLast10Lines.test_info_histogram_all_paths _________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_info_histogram_all_paths(self):\n \"\"\"Test info --histogram on all databases\"\"\"\n result = run(\"info\", \"-a\", \"-b\", \"-H\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-a', '-b', '-H', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_last_10_lines.py:62: AssertionError\n____________ TestHistogramVariations.test_histogram_apparent_base10 ____________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_histogram_apparent_base10(self):\n \"\"\"Test histogram with apparent and base10\"\"\"\n result = run(\"histogram\", \"-a\", \"--base10\", f\"--database={COMPLEX_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '-a', '--base10', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:102: AssertionError\n____________________ TestTopnCommandOptions.test_topn_bytes ____________________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_topn_bytes(self):\n \"\"\"Test topn with bytes flag.\"\"\"\n> result = run(\"topn\", \"--bytes\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:397: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'topn', '--bytes', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_______________ TestOptionFormatVariations.test_bytes_long_form ________________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_bytes_long_form(self):\n \"\"\"Test long form bytes option\"\"\"\n result = run(\"info\", \"--bytes\", \"--database=/tmp/test.db\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--bytes', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:218: AssertionError\n__________________ TestShortFormOptions.test_ls_short_options __________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_short_options(self):\n \"\"\"Test ls with short options\"\"\"\n result = run(\"ls\", \"-b\", \"-F\", \"-c\", \"-g\", \"-d\", TEST_DB, \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-b', '-F', '-c', '-g', '-d', '/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:260: AssertionError\n______________ TestDatabasePathHandling.test_database_with_space _______________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_database_with_space(self):\n \"\"\"Test --database path format.\"\"\"\n> result = run(\"ls\", \"--database\", \"/tmp/test.db\")\n\ntests/test_coverage_improvement.py:216: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ls', '--database', '/tmp/test.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n___________________ TestGraphCommandOptions.test_graph_count ___________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_graph_count(self):\n \"\"\"Test graph count flag.\"\"\"\n> result = run(\"graph\", \"--count\", \"--help\")\n\ntests/test_coverage_improvement.py:316: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--count', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_____________________ TestMore.test_xml_minsize_variations _____________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_xml_minsize_variations(self):\n \"\"\"Test XML with various min sizes\"\"\"\n for size in [5, 50, 500]:\n result = run(\"xml\", f\"--min_size={size}\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--min_size=5', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_over_50.py:33: AssertionError\n______________________ TestMore.test_ls_bytes_variations _______________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_bytes_variations(self):\n \"\"\"Test ls bytes with different paths\"\"\"\n result = run(\"ls\", \"-b\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-b', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_over_50.py:58: AssertionError\n_____________ TestLast10Lines.test_histogram_all_options_both_dbs ______________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_histogram_all_options_both_dbs(self):\n \"\"\"Test histogram with all options on both DBs\"\"\"\n result = run(\"histogram\", \"-a\", \"-b\", \"-t\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '-a', '-b', '-t', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_last_10_lines.py:71: AssertionError\n________________ TestTopnCommandOptions.test_topn_short_options ________________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_topn_short_options(self):\n \"\"\"Test topn with short options.\"\"\"\n> result = run(\"topn\", \"-a\", \"-b\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:403: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'topn', '-a', '-b', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_______________ TestErrorPaths.test_ls_recursive_depth_boundary ________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_recursive_depth_boundary(self):\n \"\"\"Test ls recursive with boundary depths\"\"\"\n for depth in [0, 1, 100]:\n result = run(\"ls\", \"-R\", f\"--levels={depth}\", f\"--database={COMPLEX_DB}\",\n \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-R', '--levels=0', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_push_to_50_final.py:60: AssertionError\n_______________ TestOptionFormatVariations.test_bytes_short_form _______________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_bytes_short_form(self):\n \"\"\"Test short form bytes option\"\"\"\n result = run(\"info\", \"-b\", \"-d\", \"/tmp/test.db\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-b', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:226: AssertionError\n______________________ TestQuickOps.test_ls_basic_output _______________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_basic_output(self):\n \"\"\"Test ls produces output.\"\"\"\n> dbfile, testdir, tmpdir = create_tiny_db()\n\ntests/test_quick_database_ops.py:34: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_quick_database_ops.py:24: in create_tiny_db\n result = run(\"index\", f\"--database={dbfile}\", str(testdir))\ntests/test_quick_database_ops.py:12: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--database=/tmp/tmpqkxh31ck/d.db', '/tmp/tmpqkxh31ck/t']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None, env = None, startupinfo = None, creationflags = 0, shell = False\np2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16\nerrwrite = 17, restore_signals = True, gid = None, gids = None, uid = None\numask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n________________ TestDatabasePaths.test_absolute_database_path _________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_absolute_database_path(self):\n \"\"\"Test absolute database path\"\"\"\n result = run(\"info\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:275: AssertionError\n______________ TestDatabasePathHandling.test_database_short_form _______________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_database_short_form(self):\n \"\"\"Test -d database short form.\"\"\"\n> result = run(\"ls\", \"-d\", \"/tmp/test.db\")\n\ntests/test_coverage_improvement.py:222: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ls', '-d', '/tmp/test.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n____________________ TestMore.test_ls_with_path_variations1 ____________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_with_path_variations1(self):\n \"\"\"Test ls with path ending in slash\"\"\"\n result = run(\"ls\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test/\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--database=/tmp/complex.db', '/tmp/complex_test/'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_over_50.py:22: AssertionError\n____________________ TestMore.test_json_minsize_variations _____________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_json_minsize_variations(self):\n \"\"\"Test JSON with various min sizes\"\"\"\n for size in [5, 50, 500]:\n result = run(\"json\", f\"--min_size={size}\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--min_size=5', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_over_50.py:39: AssertionError\n___________________ TestNonDatabaseFeatures.test_help_output ___________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_help_output(self):\n \"\"\"Test main help command.\"\"\"\n> result = run(\"--help\")\n\ntests/test_streamlined.py:36: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_________________ TestManualCommand.test_manual_command_exists _________________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_manual_command_exists(self):\n \"\"\"Test manual command generates documentation.\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n> assert b\"### Global options\" in result.stdout\nE assert b'### Global options' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_coverage_targeted.py:16: AssertionError\n_________________ TestNonDatabaseFeatures.test_version_output __________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_version_output(self):\n \"\"\"Test version command output format.\"\"\"\n> result = run(\"--version\")\n\ntests/test_streamlined.py:27: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', '--version'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_____________________ TestQuickOps.test_xml_generates_xml ______________________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_xml_generates_xml(self):\n \"\"\"Test xml generates valid xml.\"\"\"\n> dbfile, testdir, tmpdir = create_tiny_db()\n\ntests/test_quick_database_ops.py:60: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_quick_database_ops.py:24: in create_tiny_db\n result = run(\"index\", f\"--database={dbfile}\", str(testdir))\ntests/test_quick_database_ops.py:12: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--database=/tmp/tmpckk8xxv1/d.db', '/tmp/tmpckk8xxv1/t']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None, env = None, startupinfo = None, creationflags = 0, shell = False\np2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16\nerrwrite = 17, restore_signals = True, gid = None, gids = None, uid = None\numask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n___________________ TestNonDatabaseFeatures.test_index_help ____________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_index_help(self):\n \"\"\"Test index command help.\"\"\"\n> result = run(\"index\", \"--help\")\n\ntests/test_streamlined.py:61: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n______________________ TestQuickOps.test_info_shows_data _______________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_info_shows_data(self):\n \"\"\"Test info shows database info.\"\"\"\n> dbfile, testdir, tmpdir = create_tiny_db()\n\ntests/test_quick_database_ops.py:47: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_quick_database_ops.py:24: in create_tiny_db\n result = run(\"index\", f\"--database={dbfile}\", str(testdir))\ntests/test_quick_database_ops.py:12: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--database=/tmp/tmphtdppd8o/d.db', '/tmp/tmphtdppd8o/t']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None, env = None, startupinfo = None, creationflags = 0, shell = False\np2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16\nerrwrite = 17, restore_signals = True, gid = None, gids = None, uid = None\numask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_________________ TestLsMaxOptions.test_ls_all_options_combo1 __________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_all_options_combo1(self):\n \"\"\"Test ls with many options combo 1\"\"\"\n result = run(\"ls\", \"-b\", \"-a\", \"-F\", \"-c\", \"-g\", \"-R\", \"-n\",\n f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-b', '-a', '-F', '-c', '-g', '-R', '-n', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_reach_50.py:22: AssertionError\n_____________ TestLsMaxOptions.test_ls_full_path_name_sort_levels ______________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_full_path_name_sort_levels(self):\n \"\"\"Test ls with full-path, name-sort, and levels\"\"\"\n result = run(\"ls\", \"--full-path\", \"--name-sort\", \"--levels=3\", \"-R\",\n f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--full-path', '--name-sort', '--levels=3', '-R', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_reach_50.py:35: AssertionError\n____________________ TestMore.test_ls_with_path_variations2 ____________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_with_path_variations2(self):\n \"\"\"Test ls subdir\"\"\"\n result = run(\"ls\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test/subdir1/\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--database=/tmp/complex.db', '/tmp/complex_test/subdir1/'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_over_50.py:27: AssertionError\n____________________ TestNonDatabaseFeatures.test_topn_help ____________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_topn_help(self):\n \"\"\"Test topn command help.\"\"\"\n> result = run(\"topn\", \"--help\")\n\ntests/test_streamlined.py:94: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'topn', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n________________ TestNonDatabaseFeatures.test_manual_subcommand ________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_manual_subcommand(self):\n \"\"\"Test the hidden manual subcommand.\"\"\"\n> result = run(\"manual\")\n\ntests/test_streamlined.py:54: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'manual'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n___________________ TestNonDatabaseFeatures.test_graph_help ____________________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_graph_help(self):\n \"\"\"Test graph command help.\"\"\"\n> result = run(\"graph\", \"--help\")\n\ntests/test_streamlined.py:117: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n____________________ TestNonDatabaseFeatures.test_help_all _____________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_help_all(self):\n \"\"\"Test help --all command.\"\"\"\n> result = run(\"help\", \"--all\")\n\ntests/test_streamlined.py:46: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'help', '--all'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n____________________ TestQuickOps.test_json_generates_json _____________________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_json_generates_json(self):\n \"\"\"Test json generates valid json.\"\"\"\n> dbfile, testdir, tmpdir = create_tiny_db()\n\ntests/test_quick_database_ops.py:73: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_quick_database_ops.py:24: in create_tiny_db\n result = run(\"index\", f\"--database={dbfile}\", str(testdir))\ntests/test_quick_database_ops.py:12: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--database=/tmp/tmp2ucrj2r7/d.db', '/tmp/tmp2ucrj2r7/t']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None, env = None, startupinfo = None, creationflags = 0, shell = False\np2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16\nerrwrite = 17, restore_signals = True, gid = None, gids = None, uid = None\numask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_________________ TestNonDatabaseFeatures.test_histogram_help __________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_histogram_help(self):\n \"\"\"Test histogram command help.\"\"\"\n> result = run(\"histogram\", \"--help\")\n\ntests/test_streamlined.py:78: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'histogram', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_____________________ TestNonDatabaseFeatures.test_ls_help _____________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_help(self):\n \"\"\"Test ls command help.\"\"\"\n> result = run(\"ls\", \"--help\")\n\ntests/test_streamlined.py:70: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ls', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_________________ TestLsMaxOptions.test_ls_all_options_combo2 __________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_all_options_combo2(self):\n \"\"\"Test ls with many options combo 2\"\"\"\n result = run(\"ls\", \"--bytes\", \"--apparent\", \"--classify\", \"--graph\",\n \"--ascii\", \"--count\", \"--dirs-only\",\n f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--bytes', '--apparent', '--classify', '--graph', '--ascii', '--count', '--dirs-only', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_reach_50.py:29: AssertionError\n__________________ TestNonDatabaseFeatures.test_index_dry_run __________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_index_dry_run(self):\n \"\"\"Test index with --dry-run flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n testdir = Path(tmpdir) / \"test\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"test\")\n> result = run(\"index\", \"--dry-run\", str(testdir))\n\ntests/test_streamlined.py:166: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--dry-run', '/tmp/tmp1ynhhymk/test']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n____________________ TestNonDatabaseFeatures.test_info_help ____________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_info_help(self):\n \"\"\"Test info command help.\"\"\"\n> result = run(\"info\", \"--help\")\n\ntests/test_streamlined.py:86: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'info', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n____________________ TestNonDatabaseFeatures.test_json_help ____________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_json_help(self):\n \"\"\"Test json command help.\"\"\"\n> result = run(\"json\", \"--help\")\n\ntests/test_streamlined.py:101: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'json', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n____________________ TestNonDatabaseFeatures.test_xml_help _____________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_xml_help(self):\n \"\"\"Test xml command help.\"\"\"\n> result = run(\"xml\", \"--help\")\n\ntests/test_streamlined.py:109: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'xml', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_____________________ TestNonDatabaseFeatures.test_ui_help _____________________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ui_help(self):\n \"\"\"Test ui command help.\"\"\"\n> result = run(\"ui\", \"--help\")\n\ntests/test_streamlined.py:133: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ui', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n____________________ TestNonDatabaseFeatures.test_gui_help _____________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_gui_help(self):\n \"\"\"Test gui command help.\"\"\"\n> result = run(\"gui\", \"--help\")\n\ntests/test_streamlined.py:125: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'gui', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n________________ TestQuickOps.test_histogram_shows_distribution ________________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_histogram_shows_distribution(self):\n \"\"\"Test histogram shows data.\"\"\"\n> dbfile, testdir, tmpdir = create_tiny_db()\n\ntests/test_quick_database_ops.py:86: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_quick_database_ops.py:24: in create_tiny_db\n result = run(\"index\", f\"--database={dbfile}\", str(testdir))\ntests/test_quick_database_ops.py:12: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--database=/tmp/tmponz4tp2h/d.db', '/tmp/tmponz4tp2h/t']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None, env = None, startupinfo = None, creationflags = 0, shell = False\np2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16\nerrwrite = 17, restore_signals = True, gid = None, gids = None, uid = None\numask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_____________ TestNonDatabaseFeatures.test_database_error_missing ______________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_database_error_missing(self):\n \"\"\"Test that missing database produces correct error.\"\"\"\n> result = run(\"ls\", \"--database=/nonexistent/path.db\")\n\ntests/test_streamlined.py:149: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ls', '--database=/nonexistent/path.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n____________________ TestNonDatabaseFeatures.test_cgi_help _____________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_cgi_help(self):\n \"\"\"Test cgi command help.\"\"\"\n> result = run(\"cgi\", \"--help\")\n\ntests/test_streamlined.py:141: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'cgi', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n____________ TestNonDatabaseFeatures.test_database_error_directory _____________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_database_error_directory(self):\n \"\"\"Test that using a directory as database produces error.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n> result = run(\"ls\", f\"--database={tmpdir}\")\n\ntests/test_streamlined.py:156: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ls', '--database=/tmp/tmpocoiuzrf']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n__________________ TestNonDatabaseFeatures.test_verbose_flag ___________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_verbose_flag(self):\n \"\"\"Test that verbose flag is recognized.\"\"\"\n> result = run(\"--verbose\", \"--help\")\n\ntests/test_streamlined.py:172: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', '--verbose', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n___________________ TestNonDatabaseFeatures.test_debug_flag ____________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_debug_flag(self):\n \"\"\"Test that debug flag is recognized.\"\"\"\n> result = run(\"--debug\", \"--help\")\n\ntests/test_streamlined.py:178: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', '--debug', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n___________________ TestNonDatabaseFeatures.test_quiet_flag ____________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_quiet_flag(self):\n \"\"\"Test that quiet flag is recognized.\"\"\"\n> result = run(\"--quiet\", \"--help\")\n\ntests/test_streamlined.py:184: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', '--quiet', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_________________ TestNonDatabaseFeatures.test_invalid_command _________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_invalid_command(self):\n \"\"\"Test invalid subcommand.\"\"\"\n> result = run(\"invalid_command_xyz\")\n\ntests/test_streamlined.py:190: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'invalid_command_xyz'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n______________ TestNonDatabaseFeatures.test_index_exclude_pattern ______________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_index_exclude_pattern(self):\n \"\"\"Test index with exclude pattern (help text validation).\"\"\"\n> result = run(\"index\", \"--help\")\n\ntests/test_streamlined.py:196: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_________________ TestNonDatabaseFeatures.test_index_max_depth _________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_index_max_depth(self):\n \"\"\"Test index with max-depth option (help text validation).\"\"\"\n> result = run(\"index\", \"--help\")\n\ntests/test_streamlined.py:202: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n________________ TestNonDatabaseFeatures.test_ls_levels_option _________________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_ls_levels_option(self):\n \"\"\"Test ls levels option (help text validation).\"\"\"\n> result = run(\"ls\", \"--help\")\n\ntests/test_streamlined.py:208: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ls', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n______________ TestNonDatabaseFeatures.test_graph_palette_option _______________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_graph_palette_option(self):\n \"\"\"Test graph palette option (help text validation).\"\"\"\n> result = run(\"graph\", \"--help\")\n\ntests/test_streamlined.py:214: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_____________ TestNonDatabaseFeatures.test_cgi_mode_not_activated ______________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_cgi_mode_not_activated(self):\n \"\"\"Test that cgi command runs but indicates it needs CGI environment.\"\"\"\n> result = run(\"cgi\")\n\ntests/test_streamlined.py:221: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'cgi'], executable = b'./executable', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n__________ TestNonDatabaseFeatures.test_environment_variable_handling __________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_environment_variable_handling(self):\n \"\"\"Test DUC_DATABASE environment variable.\"\"\"\n> result = run(\"ls\", \"--help\", env={\"DUC_DATABASE\": \"/tmp/test.db\"})\n\ntests/test_streamlined.py:227: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ls', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'DUC_DATABASE': '/tmp/test.db', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_________________ TestNonDatabaseFeatures.test_xdg_cache_home __________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_xdg_cache_home(self):\n \"\"\"Test XDG_CACHE_HOME environment variable.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n> result = run(\"--help\", env={\"XDG_CACHE_HOME\": tmpdir})\n\ntests/test_streamlined.py:234: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n_____________ TestNonDatabaseFeatures.test_home_directory_fallback _____________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n\nself = \n\n def test_home_directory_fallback(self):\n \"\"\"Test HOME environment variable fallback.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n> result = run(\"--help\", env={\"HOME\": tmpdir})\n\ntests/test_streamlined.py:241: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n=========================== short test summary info ============================\nFAILED tests/test_50_percent.py::TestMoreLsCombinations::test_ls_bytes_apparent_count\nFAILED tests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_command_exists\nFAILED tests/test_absolutely_50.py::TestFinal::test_ls_color_various_paths - ...\nFAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_bytes_flag\nFAILED tests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_short_form_no_space\nFAILED tests/test_50_percent.py::TestMoreLsCombinations::test_ls_classify_graph_ascii\nFAILED tests/test_coverage_boost.py::TestManualCommand::test_manual_command_generates_markdown\nFAILED tests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_all_subcommands\nFAILED tests/test_absolutely_50.py::TestFinal::test_xml_nested_deep_paths - A...\nFAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_force_flag\nFAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_check_hard_links\nFAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_size\nFAILED tests/test_50_percent.py::TestMoreLsCombinations::test_ls_recursive_name_sort\nFAILED tests/test_coverage_boost.py::TestManualCommand::test_manual_command_documents_all_subcommands\nFAILED tests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_option_format\nFAILED tests/test_edge_coverage.py::TestMinSizeFiltering::test_json_min_size_large\nFAILED tests/test_edge_coverage.py::TestRecursiveListing::test_ls_recursive_with_levels_0\nFAILED tests/test_absolutely_50.py::TestFinal::test_json_nested_deep_paths - ...\nFAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_progress_flag\nFAILED tests/test_edge_coverage.py::TestNameSorting::test_ls_name_sort - Asse...\nFAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_hide_file_names\nFAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_rainbow\nFAILED tests/test_coverage_boost.py::TestManualCommand::test_manual_command_includes_option_descriptions\nFAILED tests/test_50_percent.py::TestLsColorASCII::test_ls_color_classify - A...\nFAILED tests/test_additional_coverage_phase2.py::TestManualSubcommand::test_manual_shows_command_usage\nFAILED tests/test_edge_coverage.py::TestMinSizeFiltering::test_xml_min_size_zero\nFAILED tests/test_edge_coverage.py::TestRecursiveListing::test_ls_recursive_with_levels_10\nFAILED tests/test_absolutely_50.py::TestFinal::test_ls_full_path_all_dirs - A...\nFAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_dark\nFAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_one_file_system\nFAILED tests/test_edge_coverage.py::TestFullPathMode::test_ls_full_path_recursive\nFAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_greyscale\nFAILED tests/test_50_percent.py::TestLsColorASCII::test_ls_color_graph - Asse...\nFAILED tests/test_edge_coverage.py::TestMinSizeFiltering::test_json_min_size_zero\nFAILED tests/test_edge_coverage.py::TestSizeDisplayFormats::test_ls_bytes_exact\nFAILED tests/test_absolutely_50.py::TestFinal::test_histogram_all_databases\nFAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_dpi\nFAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_uncompressed\nFAILED tests/test_edge_coverage.py::TestAsciiMode::test_ls_ascii_tree - Asser...\nFAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_monochrome\nFAILED tests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_xml_min_size_10\nFAILED tests/test_edge_coverage.py::TestCountMode::test_ls_count_mode - Asser...\nFAILED tests/test_edge_coverage.py::TestSizeDisplayFormats::test_info_bytes_exact\nFAILED tests/test_absolutely_50.py::TestFinal::test_info_all_databases - Asse...\nFAILED tests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_apparent\nFAILED tests/test_final_14_lines.py::TestEvenMoreCombinations::test_ls_directory_recursive\nFAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_buckets\nFAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_palette_classic\nFAILED tests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_json_min_size_10\nFAILED tests/test_edge_coverage.py::TestColorOutput::test_ls_color_with_tty\nFAILED tests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_bytes\nFAILED tests/test_edge_coverage.py::TestApparentVsActualSize::test_info_apparent_vs_actual\nFAILED tests/test_final_14_lines.py::TestEvenMoreCombinations::test_xml_all_subdirs\nFAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_topn\nFAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_output_formats\nFAILED tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_recursive\nFAILED tests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_xml_min_size_100\nFAILED tests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_histogram\nFAILED tests/test_final_coverage_push.py::TestMultipleOptionCombinations::test_ls_all_display_options\nFAILED tests/test_edge_coverage.py::TestApparentVsActualSize::test_ls_apparent_size\nFAILED tests/test_edge_coverage.py::TestMinSizeFiltering::test_xml_min_size_large\nFAILED tests/test_final_coverage_push.py::TestDatabasePaths::test_database_with_equals\nFAILED tests/test_final_14_lines.py::TestEvenMoreCombinations::test_json_all_subdirs\nFAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_topn_min\nFAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_size_option\nFAILED tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_with_levels\nFAILED tests/test_50_percent.py::TestXmlJsonMinSizeVariations::test_json_min_size_100\nFAILED tests/test_coverage_improvement.py::TestInfoCommandOptions::test_info_short_options\nFAILED tests/test_final_coverage_push.py::TestMultipleOptionCombinations::test_info_all_options\nFAILED tests/test_edge_coverage.py::TestApparentVsActualSize::test_histogram_apparent_size\nFAILED tests/test_final_coverage_push.py::TestDatabasePaths::test_database_short_with_space\nFAILED tests/test_final_14_lines.py::TestEvenMoreCombinations::test_ls_levels_0_through_5\nFAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_uid\nFAILED tests/test_exactly_50_percent.py::TestExactly50::test_ls_recursive_all_levels_all_paths\nFAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_levels_option\nFAILED tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_with_levels_2\nFAILED tests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_apparent\nFAILED tests/test_50_percent.py::TestHistogramAllCombinations::test_histogram_all_flags\nFAILED tests/test_final_coverage_push.py::TestVerboseDebugOutput::test_info_with_verbose\nFAILED tests/test_edge_coverage.py::TestClassifyOption::test_ls_classify_shows_indicators\nFAILED tests/test_final_push.py::TestLsEdgeCases::test_ls_directory_flag - As...\nFAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_username\nFAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_ring_gap\nFAILED tests/test_final_push.py::TestInfoHistogram::test_info_histogram_display\nFAILED tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_color\nFAILED tests/test_final_push.py::TestXmlJsonEdgeCases::test_json_deep_path - ...\nFAILED tests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_bytes\nFAILED tests/test_50_percent.py::TestInfoAllCombinations::test_info_all_flags\nFAILED tests/test_final_coverage_push.py::TestVerboseDebugOutput::test_ls_with_verbose\nFAILED tests/test_final_coverage_push.py::TestXmlJsonRobustness::test_json_root_path\nFAILED tests/test_final_push.py::TestLsEdgeCases::test_ls_recursive_levels_max\nFAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_fs_exclude\nFAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_fuzz\nFAILED tests/test_final_push.py::TestLsFullPathRecursive::test_ls_full_path_recursive_nested\nFAILED tests/test_final_coverage_push.py::TestLsRecursiveOptions::test_ls_dirs_only\nFAILED tests/test_final_push.py::TestXmlJsonEdgeCases::test_xml_apparent_exclude_min\nFAILED tests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_base10\nFAILED tests/test_final_coverage_push.py::TestVerboseDebugOutput::test_histogram_with_debug\nFAILED tests/test_final_coverage_push.py::TestXmlJsonRobustness::test_xml_apparent_and_min_size\nFAILED tests/test_final_push.py::TestXmlJsonEdgeCases::test_xml_deep_path - A...\nFAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_with_fs_include\nFAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_gradient\nFAILED tests/test_last_10_lines.py::TestLast10Lines::test_ls_every_option_combination\nFAILED tests/test_final_coverage_push.py::TestXmlJsonRobustness::test_xml_root_path\nFAILED tests/test_final_push.py::TestXmlJsonEdgeCases::test_json_apparent_exclude_min\nFAILED tests/test_coverage_improvement.py::TestHistogramCommandOptions::test_histogram_short_options\nFAILED tests/test_more_coverage.py::TestOptionFormatVariations::test_database_long_form\nFAILED tests/test_final_coverage_push.py::TestVerboseDebugOutput::test_xml_with_quiet\nFAILED tests/test_final_coverage_push.py::TestXmlJsonRobustness::test_json_apparent_and_min_size\nFAILED tests/test_coverage_improvement.py::TestCmdIndexCoverage::test_index_short_options\nFAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_bytes\nFAILED tests/test_more_coverage.py::TestOptionFormatVariations::test_apparent_long_form\nFAILED tests/test_last_10_lines.py::TestLast10Lines::test_xml_json_all_combinations_all_paths\nFAILED tests/test_final_push.py::TestHistogramVariations::test_histogram_base10_bytes\nFAILED tests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_apparent\nFAILED tests/test_more_coverage.py::TestOptionFormatVariations::test_database_short_form\nFAILED tests/test_final_coverage_push.py::TestShortFormOptions::test_info_short_options\nFAILED tests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_with_equals_sign\nFAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_apparent\nFAILED tests/test_more_coverage.py::TestEdgeCases::test_multiple_database_options\nFAILED tests/test_more_coverage.py::TestOptionFormatVariations::test_apparent_short_form\nFAILED tests/test_last_10_lines.py::TestLast10Lines::test_info_histogram_all_paths\nFAILED tests/test_final_push.py::TestHistogramVariations::test_histogram_apparent_base10\nFAILED tests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_bytes\nFAILED tests/test_more_coverage.py::TestOptionFormatVariations::test_bytes_long_form\nFAILED tests/test_final_coverage_push.py::TestShortFormOptions::test_ls_short_options\nFAILED tests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_with_space\nFAILED tests/test_coverage_improvement.py::TestGraphCommandOptions::test_graph_count\nFAILED tests/test_over_50.py::TestMore::test_xml_minsize_variations - Asserti...\nFAILED tests/test_over_50.py::TestMore::test_ls_bytes_variations - AssertionE...\nFAILED tests/test_last_10_lines.py::TestLast10Lines::test_histogram_all_options_both_dbs\nFAILED tests/test_coverage_improvement.py::TestTopnCommandOptions::test_topn_short_options\nFAILED tests/test_push_to_50_final.py::TestErrorPaths::test_ls_recursive_depth_boundary\nFAILED tests/test_more_coverage.py::TestOptionFormatVariations::test_bytes_short_form\nFAILED tests/test_quick_database_ops.py::TestQuickOps::test_ls_basic_output\nFAILED tests/test_final_coverage_push.py::TestDatabasePaths::test_absolute_database_path\nFAILED tests/test_coverage_improvement.py::TestDatabasePathHandling::test_database_short_form\nFAILED tests/test_over_50.py::TestMore::test_ls_with_path_variations1 - Asser...\nFAILED tests/test_over_50.py::TestMore::test_json_minsize_variations - Assert...\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_help_output\nFAILED tests/test_coverage_targeted.py::TestManualCommand::test_manual_command_exists\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_version_output\nFAILED tests/test_quick_database_ops.py::TestQuickOps::test_xml_generates_xml\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_index_help - ...\nFAILED tests/test_quick_database_ops.py::TestQuickOps::test_info_shows_data\nFAILED tests/test_reach_50.py::TestLsMaxOptions::test_ls_all_options_combo1\nFAILED tests/test_reach_50.py::TestLsMaxOptions::test_ls_full_path_name_sort_levels\nFAILED tests/test_over_50.py::TestMore::test_ls_with_path_variations2 - Asser...\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_topn_help - F...\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_manual_subcommand\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_graph_help - ...\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_help_all - Fi...\nFAILED tests/test_quick_database_ops.py::TestQuickOps::test_json_generates_json\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_histogram_help\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_ls_help - Fil...\nFAILED tests/test_reach_50.py::TestLsMaxOptions::test_ls_all_options_combo2\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_index_dry_run\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_info_help - F...\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_json_help - F...\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_xml_help - Fi...\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_ui_help - Fil...\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_gui_help - Fi...\nFAILED tests/test_quick_database_ops.py::TestQuickOps::test_histogram_shows_distribution\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_database_error_missing\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_cgi_help - Fi...\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_database_error_directory\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_verbose_flag\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_debug_flag - ...\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_quiet_flag - ...\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_invalid_command\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_index_exclude_pattern\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_index_max_depth\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_ls_levels_option\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_graph_palette_option\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_cgi_mode_not_activated\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_environment_variable_handling\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_xdg_cache_home\nFAILED tests/test_streamlined.py::TestNonDatabaseFeatures::test_home_directory_fallback\n=========== 178 failed, 705 passed, 15 skipped, 356 rerun in 48.35s ============\n", "returncode": 1, "exception_info": ""}, {"step": "results_read", "command": "docker cp 17e2fafffe3e53aa4ce824068a1255ecbe5a8625d6946f0b7812a302c4ac4b99:/workspace/eval/results.xml /tmp/tmp1kdpxn9f.xml", "wall_time": 0.04838033812120557, "output": "self = <test_50_percent.TestMoreLsCombinations object at 0x7f53d094aa70>\n\n def test_ls_bytes_apparent_count(self):\n \"\"\"Test ls with bytes, apparent, and count\"\"\"\n result = run(\"ls\", \"-b\", \"-a\", \"--count\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-b', '-a', '--count', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_50_percent.py:22: AssertionErrorself = <test_additional_coverage_phase2.TestManualSubcommand object at 0x7f5cd3bc50f0>\n\n def test_manual_command_exists(self):\n \"\"\"Test that the manual subcommand produces markdown-style documentation.\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n> assert b\"### Global options\" in result.stdout\nE assert b'### Global options' in b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_additional_coverage_phase2.py:16: AssertionErrorself = <test_absolutely_50.TestFinal object at 0x7fbf619541c0>\n\n def test_ls_color_various_paths(self):\n \"\"\"Test ls color on various paths\"\"\"\n result = run(\"ls\", \"--color\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--color', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_absolutely_50.py:22: AssertionErrorself = <test_coverage_improvement.TestCmdIndexCoverage object at 0x7f6cce6bd060>\n\n def test_index_with_bytes_flag(self):\n \"\"\"Test index --bytes flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--bytes\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:57: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--bytes', '--databa...>\nargs = ['./executable', 'index', '--bytes', '--database=/tmp/tmp7wwbcar8/test.db', '/tmp/tmp7wwbcar8/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_coverage_improvement.TestDatabasePathHandling object at 0x7fd2b8ad22c0>\n\n def test_database_short_form_no_space(self):\n \"\"\"Test -ddatabase short form without space.\"\"\"\n> result = run(\"ls\", \"-d/tmp/test.db\")\n\ntests/test_coverage_improvement.py:228: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'ls', '-d/tmp/test.db']>\nargs = ['./executable', 'ls', '-d/tmp/test.db'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_50_percent.TestMoreLsCombinations object at 0x7f53d094b400>\n\n def test_ls_classify_graph_ascii(self):\n \"\"\"Test ls with classify, graph, and ascii\"\"\"\n result = run(\"ls\", \"-F\", \"-g\", \"--ascii\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-F', '-g', '--ascii', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_50_percent.py:27: AssertionErrorself = <test_coverage_boost.TestManualCommand object at 0x7f35f280b2b0>\n\n def test_manual_command_generates_markdown(self):\n \"\"\"Test manual command produces markdown documentation\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n # Check for markdown headers\n> assert b\"### Global options\" in result.stdout\nE assert b'### Global options' in b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_coverage_boost.py:25: AssertionErrorself = <test_additional_coverage_phase2.TestManualSubcommand object at 0x7f5cd3bc53f0>\n\n def test_manual_shows_all_subcommands(self):\n \"\"\"Test that manual output includes all major subcommands.\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n> assert b\"### duc index\" in result.stdout\nE assert b'### duc index' in b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_additional_coverage_phase2.py:23: AssertionErrorself = <test_absolutely_50.TestFinal object at 0x7fbf61c22aa0>\n\n def test_xml_nested_deep_paths(self):\n \"\"\"Test XML on deeply nested paths\"\"\"\n paths = [\n \"/tmp/complex_test\",\n \"/tmp/complex_test/subdir1\",\n \"/tmp/complex_test/subdir1/subdir2\"\n ]\n for path in paths:\n result = run(\"xml\", f\"--database={COMPLEX_DB}\", path)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_absolutely_50.py:44: AssertionErrorself = <test_coverage_improvement.TestCmdIndexCoverage object at 0x7fa30f273940>\n\n def test_index_with_force_flag(self):\n \"\"\"Test index --force flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--force\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:33: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--force', '--databa...>\nargs = ['./executable', 'index', '--force', '--database=/tmp/tmpq534oxyl/test.db', '/tmp/tmpq534oxyl/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_coverage_improvement.TestCmdIndexCoverage object at 0x7f6cce6bdc60>\n\n def test_index_with_check_hard_links(self):\n \"\"\"Test index --check-hard-links flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--check-hard-links\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:69: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--check-hard-links'...>\nargs = ['./executable', 'index', '--check-hard-links', '--database=/tmp/tmpflg0bwgl/test.db', '/tmp/tmpflg0bwgl/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_coverage_improvement.TestGraphCommandOptions object at 0x7fd2b8ad1de0>\n\n def test_graph_palette_size(self):\n \"\"\"Test graph with size palette.\"\"\"\n> result = run(\"graph\", \"--palette=size\", \"--help\")\n\ntests/test_coverage_improvement.py:237: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'graph', '--palette=size', '-...>\nargs = ['./executable', 'graph', '--palette=size', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_50_percent.TestMoreLsCombinations object at 0x7f53d094b4f0>\n\n def test_ls_recursive_name_sort(self):\n \"\"\"Test ls recursive with name sort\"\"\"\n result = run(\"ls\", \"-R\", \"-n\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-R', '-n', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_50_percent.py:32: AssertionErrorself = <test_coverage_boost.TestManualCommand object at 0x7f35f28094e0>\n\n def test_manual_command_documents_all_subcommands(self):\n \"\"\"Test manual documents all major subcommands\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n subcommands = [b\"help\", b\"histogram\", b\"index\", b\"info\", b\"ls\",\n b\"topn\", b\"xml\", b\"json\", b\"graph\", b\"cgi\", b\"gui\", b\"ui\"]\n for cmd in subcommands:\n> assert b\"### duc \" + cmd in result.stdout\nE assert (b'### duc ' + b'help') in b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_coverage_boost.py:41: AssertionErrorself = <test_additional_coverage_phase2.TestManualSubcommand object at 0x7f5cd3bc5510>\n\n def test_manual_shows_option_format(self):\n \"\"\"Test that manual output uses markdown formatting for options.\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n # Check for markdown-style formatting\n> assert b\"`--debug`:\" in result.stdout\nE assert b'`--debug`:' in b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_additional_coverage_phase2.py:36: AssertionErrorself = <test_edge_coverage.TestMinSizeFiltering object at 0x7f9c2ac38e50>\n\n def test_json_min_size_large(self):\n \"\"\"Test JSON with large min size\"\"\"\n result = run(\"json\", \"--min_size=1000000\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--min_size=1000000', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:91: AssertionErrorself = <test_edge_coverage.TestRecursiveListing object at 0x7f3692df5510>\n\n def test_ls_recursive_with_levels_0(self):\n \"\"\"Test ls with levels=0\"\"\"\n result = run(\"ls\", \"--recursive\", \"--levels=0\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--recursive', '--levels=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:21: AssertionErrorself = <test_absolutely_50.TestFinal object at 0x7fbf61c22c20>\n\n def test_json_nested_deep_paths(self):\n \"\"\"Test JSON on deeply nested paths\"\"\"\n paths = [\n \"/tmp/complex_test\",\n \"/tmp/complex_test/subdir1\",\n \"/tmp/complex_test/subdir1/subdir2\"\n ]\n for path in paths:\n result = run(\"json\", f\"--database={COMPLEX_DB}\", path)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_absolutely_50.py:56: AssertionErrorself = <test_coverage_improvement.TestCmdIndexCoverage object at 0x7fa30f273250>\n\n def test_index_with_progress_flag(self):\n \"\"\"Test index --progress flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--progress\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:45: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--progress', '--dat...>\nargs = ['./executable', 'index', '--progress', '--database=/tmp/tmpavonhtlw/test.db', '/tmp/tmpavonhtlw/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_edge_coverage.TestNameSorting object at 0x7fd1f2f19f00>\n\n def test_ls_name_sort(self):\n \"\"\"Test ls sorts by name\"\"\"\n result = run(\"ls\", \"--name-sort\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--name-sort', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:186: AssertionErrorself = <test_coverage_improvement.TestCmdIndexCoverage object at 0x7f6cce6bcc40>\n\n def test_index_with_hide_file_names(self):\n \"\"\"Test index --hide-file-names flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--hide-file-names\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:81: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--hide-file-names',...>\nargs = ['./executable', 'index', '--hide-file-names', '--database=/tmp/tmpg_hw_f4n/test.db', '/tmp/tmpg_hw_f4n/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_coverage_improvement.TestGraphCommandOptions object at 0x7fd2b8ad1ab0>\n\n def test_graph_palette_rainbow(self):\n \"\"\"Test graph with rainbow palette.\"\"\"\n> result = run(\"graph\", \"--palette=rainbow\", \"--help\")\n\ntests/test_coverage_improvement.py:243: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'graph', '--palette=rainbow',...>\nargs = ['./executable', 'graph', '--palette=rainbow', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_coverage_boost.TestManualCommand object at 0x7f35f280a7d0>\n\n def test_manual_command_includes_option_descriptions(self):\n \"\"\"Test manual includes detailed option descriptions\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n # Check for common option descriptions\n assert b\"increase verbosity\" in result.stdout\n> assert b\"database file\" in result.stdout\nE assert b'database file' in b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_coverage_boost.py:49: AssertionErrorself = <test_50_percent.TestLsColorASCII object at 0x7f53d0949cf0>\n\n def test_ls_color_classify(self):\n \"\"\"Test ls with color and classify\"\"\"\n result = run(\"ls\", \"-c\", \"-F\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-c', '-F', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_50_percent.py:64: AssertionErrorself = <test_additional_coverage_phase2.TestManualSubcommand object at 0x7f5cd3bc5990>\n\n def test_manual_shows_command_usage(self):\n \"\"\"Test that manual output includes usage patterns for commands.\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n # Should show usage patterns\n> assert b\"Options for command\" in result.stdout\nE assert b'Options for command' in b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_additional_coverage_phase2.py:54: AssertionErrorself = <test_edge_coverage.TestMinSizeFiltering object at 0x7f9c2ac38c40>\n\n def test_xml_min_size_zero(self):\n \"\"\"Test XML with min_size=0\"\"\"\n result = run(\"xml\", \"--min_size=0\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--min_size=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:98: AssertionErrorself = <test_edge_coverage.TestRecursiveListing object at 0x7f3692df5f30>\n\n def test_ls_recursive_with_levels_10(self):\n \"\"\"Test ls with high level count\"\"\"\n result = run(\"ls\", \"--recursive\", \"--levels=10\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--recursive', '--levels=10', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:26: AssertionErrorself = <test_absolutely_50.TestFinal object at 0x7fbf61c23550>\n\n def test_ls_full_path_all_dirs(self):\n \"\"\"Test ls full-path on all directories\"\"\"\n result = run(\"ls\", \"--full-path\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--full-path', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_absolutely_50.py:63: AssertionErrorself = <test_coverage_improvement.TestGraphCommandOptions object at 0x7fa30f271600>\n\n def test_graph_dark(self):\n \"\"\"Test graph dark flag.\"\"\"\n> result = run(\"graph\", \"--dark\", \"--help\")\n\ntests/test_coverage_improvement.py:322: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'graph', '--dark', '--help']>\nargs = ['./executable', 'graph', '--dark', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_edge_coverage.TestFullPathMode object at 0x7fd1f2f19db0>\n\n def test_ls_full_path_recursive(self):\n \"\"\"Test ls full-path with recursive\"\"\"\n result = run(\"ls\", \"--full-path\", \"--recursive\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--full-path', '--recursive', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:236: AssertionErrorself = <test_coverage_improvement.TestCmdIndexCoverage object at 0x7f6cce6bc370>\n\n def test_index_with_one_file_system(self):\n \"\"\"Test index --one-file-system flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--one-file-system\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:93: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--one-file-system',...>\nargs = ['./executable', 'index', '--one-file-system', '--database=/tmp/tmpugn_l9wn/test.db', '/tmp/tmpugn_l9wn/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_coverage_improvement.TestGraphCommandOptions object at 0x7fd2b8ad1240>\n\n def test_graph_palette_greyscale(self):\n \"\"\"Test graph with greyscale palette.\"\"\"\n> result = run(\"graph\", \"--palette=greyscale\", \"--help\")\n\ntests/test_coverage_improvement.py:249: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'graph', '--palette=greyscale...>\nargs = ['./executable', 'graph', '--palette=greyscale', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_50_percent.TestLsColorASCII object at 0x7f53d0949bd0>\n\n def test_ls_color_graph(self):\n \"\"\"Test ls with color and graph\"\"\"\n result = run(\"ls\", \"--color\", \"--graph\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--color', '--graph', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_50_percent.py:69: AssertionErrorself = <test_edge_coverage.TestMinSizeFiltering object at 0x7f9c2adfbc10>\n\n def test_json_min_size_zero(self):\n \"\"\"Test JSON with min_size=0\"\"\"\n result = run(\"json\", \"--min_size=0\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--min_size=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:104: AssertionErrorself = <test_edge_coverage.TestSizeDisplayFormats object at 0x7f3692df6080>\n\n def test_ls_bytes_exact(self):\n \"\"\"Test ls shows exact bytes\"\"\"\n result = run(\"ls\", \"--bytes\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--bytes', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:35: AssertionErrorself = <test_absolutely_50.TestFinal object at 0x7fbf61c23b50>\n\n def test_histogram_all_databases(self):\n \"\"\"Test histogram on both databases\"\"\"\n result = run(\"histogram\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_absolutely_50.py:70: AssertionErrorself = <test_coverage_improvement.TestGraphCommandOptions object at 0x7fa30f2711e0>\n\n def test_graph_dpi(self):\n \"\"\"Test graph dpi option.\"\"\"\n> result = run(\"graph\", \"--dpi=150\", \"--help\")\n\ntests/test_coverage_improvement.py:328: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'graph', '--dpi=150', '--help']>\nargs = ['./executable', 'graph', '--dpi=150', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_coverage_improvement.TestCmdIndexCoverage object at 0x7f6cce6bd5a0>\n\n def test_index_with_uncompressed(self):\n \"\"\"Test index --uncompressed flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--uncompressed\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:105: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--uncompressed', '-...>\nargs = ['./executable', 'index', '--uncompressed', '--database=/tmp/tmptuu1jdz9/test.db', '/tmp/tmptuu1jdz9/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_edge_coverage.TestAsciiMode object at 0x7fd1f2f198d0>\n\n def test_ls_ascii_tree(self):\n \"\"\"Test ls ASCII tree characters\"\"\"\n result = run(\"ls\", \"--ascii\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--ascii', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:244: AssertionErrorself = <test_coverage_improvement.TestGraphCommandOptions object at 0x7fd2b8ad26e0>\n\n def test_graph_palette_monochrome(self):\n \"\"\"Test graph with monochrome palette.\"\"\"\n> result = run(\"graph\", \"--palette=monochrome\", \"--help\")\n\ntests/test_coverage_improvement.py:255: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'graph', '--palette=monochrom...>\nargs = ['./executable', 'graph', '--palette=monochrome', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_edge_coverage.TestCountMode object at 0x7f9c2adfbfd0>\n\n def test_ls_count_mode(self):\n \"\"\"Test ls with count instead of size\"\"\"\n result = run(\"ls\", \"--count\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--count', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:113: AssertionErrorself = <test_50_percent.TestXmlJsonMinSizeVariations object at 0x7f53d0949360>\n\n def test_xml_min_size_10(self):\n \"\"\"Test XML with min_size 10\"\"\"\n result = run(\"xml\", \"-s\", \"10\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '-s', '10', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_50_percent.py:95: AssertionErrorself = <test_edge_coverage.TestSizeDisplayFormats object at 0x7f3692df6500>\n\n def test_info_bytes_exact(self):\n \"\"\"Test info shows exact bytes\"\"\"\n result = run(\"info\", \"--bytes\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--bytes', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:42: AssertionErrorself = <test_absolutely_50.TestFinal object at 0x7fbf61c23640>\n\n def test_info_all_databases(self):\n \"\"\"Test info on both databases\"\"\"\n result = run(\"info\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_absolutely_50.py:79: AssertionErrorself = <test_coverage_improvement.TestInfoCommandOptions object at 0x7fa30f273d60>\n\n def test_info_apparent(self):\n \"\"\"Test info with apparent flag.\"\"\"\n> result = run(\"info\", \"--apparent\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:337: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'info', '--apparent', '--data...>\nargs = ['./executable', 'info', '--apparent', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_final_14_lines.TestEvenMoreCombinations object at 0x7f35f2d97f10>\n\n def test_ls_directory_recursive(self):\n \"\"\"Test ls -D with recursive\"\"\"\n result = run(\"ls\", \"-D\", \"-R\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-D', '-R', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_final_14_lines.py:21: AssertionErrorself = <test_coverage_improvement.TestCmdIndexCoverage object at 0x7f6cce6bd7b0>\n\n def test_index_with_buckets(self):\n \"\"\"Test index --buckets flag with value.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--buckets=32\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:117: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--buckets=32', '--d...>\nargs = ['./executable', 'index', '--buckets=32', '--database=/tmp/tmp7ueft6uv/test.db', '/tmp/tmp7ueft6uv/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_coverage_improvement.TestGraphCommandOptions object at 0x7fd2b8ad00a0>\n\n def test_graph_palette_classic(self):\n \"\"\"Test graph with classic palette.\"\"\"\n> result = run(\"graph\", \"--palette=classic\", \"--help\")\n\ntests/test_coverage_improvement.py:261: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'graph', '--palette=classic',...>\nargs = ['./executable', 'graph', '--palette=classic', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_50_percent.TestXmlJsonMinSizeVariations object at 0x7f53d0949720>\n\n def test_json_min_size_10(self):\n \"\"\"Test JSON with min_size 10\"\"\"\n result = run(\"json\", \"-s\", \"10\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '-s', '10', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_50_percent.py:101: AssertionErrorself = <test_edge_coverage.TestColorOutput object at 0x7f3692df6650>\n\n def test_ls_color_with_tty(self):\n \"\"\"Test ls color option\"\"\"\n result = run(\"ls\", \"--color\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--color', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:52: AssertionErrorself = <test_edge_coverage.TestApparentVsActualSize object at 0x7f9c2ac3b5e0>\n\n def test_info_apparent_vs_actual(self):\n \"\"\"Test info shows different sizes for apparent vs actual\"\"\"\n result1 = run(\"info\", f\"--database={TEST_DB}\")\n result2 = run(\"info\", \"--apparent\", f\"--database={TEST_DB}\")\n> assert result1.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:137: AssertionErrorself = <test_coverage_improvement.TestInfoCommandOptions object at 0x7fa30f270220>\n\n def test_info_bytes(self):\n \"\"\"Test info with bytes flag.\"\"\"\n> result = run(\"info\", \"--bytes\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:343: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'info', '--bytes', '--databas...>\nargs = ['./executable', 'info', '--bytes', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_final_14_lines.TestEvenMoreCombinations object at 0x7f35f2d967d0>\n\n def test_xml_all_subdirs(self):\n \"\"\"Test XML on all subdirectories\"\"\"\n result = run(\"xml\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_14_lines.py:26: AssertionErrorself = <test_coverage_improvement.TestCmdIndexCoverage object at 0x7f6cce6be110>\n\n def test_index_with_topn(self):\n \"\"\"Test index --topn flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--topn=10\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:129: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--topn=10', '--data...>\nargs = ['./executable', 'index', '--topn=10', '--database=/tmp/tmpez8_3wdz/test.db', '/tmp/tmpez8_3wdz/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_coverage_improvement.TestGraphCommandOptions object at 0x7fd2b8ad03d0>\n\n def test_graph_output_formats(self):\n \"\"\"Test graph output format options.\"\"\"\n for fmt in [\"png\", \"svg\", \"pdf\", \"html\"]:\n> result = run(\"graph\", f\"--output=/tmp/test.{fmt}\", \"--help\")\n\ntests/test_coverage_improvement.py:268: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'graph', '--output=/tmp/test....>\nargs = ['./executable', 'graph', '--output=/tmp/test.png', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_final_coverage_push.TestLsRecursiveOptions object at 0x7f5cd3b6c670>\n\n def test_ls_recursive(self):\n \"\"\"Test ls --recursive\"\"\"\n result = run(\"ls\", \"--recursive\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--recursive', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:21: AssertionErrorself = <test_50_percent.TestXmlJsonMinSizeVariations object at 0x7f53d094b2e0>\n\n def test_xml_min_size_100(self):\n \"\"\"Test XML with min_size 100\"\"\"\n result = run(\"xml\", \"--min_size=100\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--min_size=100', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_50_percent.py:107: AssertionErrorself = <test_final_coverage_push.TestMultipleOptionCombinations object at 0x7fbf619550f0>\n\n def test_ls_all_display_options(self):\n \"\"\"Test ls with all display options\"\"\"\n result = run(\"ls\", \"--bytes\", \"--classify\", \"--graph\", \"--ascii\", \"--count\",\n f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--bytes', '--classify', '--graph', '--ascii', '--count', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:204: AssertionErrorself = <test_coverage_improvement.TestInfoCommandOptions object at 0x7fa30f2701c0>\n\n def test_info_histogram(self):\n \"\"\"Test info with histogram flag.\"\"\"\n> result = run(\"info\", \"--histogram\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:349: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'info', '--histogram', '--dat...>\nargs = ['./executable', 'info', '--histogram', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_edge_coverage.TestApparentVsActualSize object at 0x7f9c2ac3a290>\n\n def test_ls_apparent_size(self):\n \"\"\"Test ls with apparent size\"\"\"\n result = run(\"ls\", \"--apparent\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--apparent', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:145: AssertionErrorself = <test_edge_coverage.TestMinSizeFiltering object at 0x7f3692df7250>\n\n def test_xml_min_size_large(self):\n \"\"\"Test XML with large min size filters everything\"\"\"\n result = run(\"xml\", \"--min_size=1000000\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--min_size=1000000', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:84: AssertionErrorself = <test_final_coverage_push.TestDatabasePaths object at 0x7fd1f2c6b460>\n\n def test_database_with_equals(self):\n \"\"\"Test database option with equals sign\"\"\"\n result = run(\"info\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:281: AssertionErrorself = <test_final_14_lines.TestEvenMoreCombinations object at 0x7f35f2d94e50>\n\n def test_json_all_subdirs(self):\n \"\"\"Test JSON on all subdirectories\"\"\"\n result = run(\"json\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_14_lines.py:35: AssertionErrorself = <test_coverage_improvement.TestCmdIndexCoverage object at 0x7f6cce6be4a0>\n\n def test_index_with_topn_min(self):\n \"\"\"Test index --topn-min flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--topn-min=1024\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:141: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--topn-min=1024', '...>\nargs = ['./executable', 'index', '--topn-min=1024', '--database=/tmp/tmp7zt9adv5/test.db', '/tmp/tmp7zt9adv5/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_coverage_improvement.TestGraphCommandOptions object at 0x7fd2b8ad0970>\n\n def test_graph_size_option(self):\n \"\"\"Test graph size option.\"\"\"\n> result = run(\"graph\", \"--size=1024\", \"--help\")\n\ntests/test_coverage_improvement.py:274: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'graph', '--size=1024', '--he...>\nargs = ['./executable', 'graph', '--size=1024', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_final_coverage_push.TestLsRecursiveOptions object at 0x7f5cd3b6c760>\n\n def test_ls_with_levels(self):\n \"\"\"Test ls --levels\"\"\"\n result = run(\"ls\", \"--levels=1\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--levels=1', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:27: AssertionErrorself = <test_50_percent.TestXmlJsonMinSizeVariations object at 0x7f53d094b490>\n\n def test_json_min_size_100(self):\n \"\"\"Test JSON with min_size 100\"\"\"\n result = run(\"json\", \"--min_size=100\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--min_size=100', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_50_percent.py:112: AssertionErrorself = <test_coverage_improvement.TestInfoCommandOptions object at 0x7fa30f271030>\n\n def test_info_short_options(self):\n \"\"\"Test info with short options.\"\"\"\n> result = run(\"info\", \"-a\", \"-b\", \"-H\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:355: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'info', '-a', '-b', '-H', '--...>\nargs = ['./executable', 'info', '-a', '-b', '-H', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_final_coverage_push.TestMultipleOptionCombinations object at 0x7fbf61954070>\n\n def test_info_all_options(self):\n \"\"\"Test info with all options\"\"\"\n result = run(\"info\", \"--bytes\", \"--apparent\", \"--histogram\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--bytes', '--apparent', '--histogram', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:210: AssertionErrorself = <test_edge_coverage.TestApparentVsActualSize object at 0x7f9c2ac3bbe0>\n\n def test_histogram_apparent_size(self):\n \"\"\"Test histogram with apparent size\"\"\"\n result = run(\"histogram\", \"--apparent\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '--apparent', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:151: AssertionErrorself = <test_final_coverage_push.TestDatabasePaths object at 0x7fd1f2c6b4c0>\n\n def test_database_short_with_space(self):\n \"\"\"Test short database option with space\"\"\"\n result = run(\"info\", \"-d\", TEST_DB)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:286: AssertionErrorself = <test_final_14_lines.TestEvenMoreCombinations object at 0x7f35f2d96e00>\n\n def test_ls_levels_0_through_5(self):\n \"\"\"Test ls with different level values\"\"\"\n for level in [0, 1, 2, 3]:\n result = run(\"ls\", f\"--levels={level}\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--levels=0', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_final_14_lines.py:45: AssertionErrorself = <test_coverage_improvement.TestCmdIndexCoverage object at 0x7f6cce6bea10>\n\n def test_index_with_uid(self):\n \"\"\"Test index --uid flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--uid=1000\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:153: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--uid=1000', '--dat...>\nargs = ['./executable', 'index', '--uid=1000', '--database=/tmp/tmpbmrfng6c/test.db', '/tmp/tmpbmrfng6c/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_exactly_50_percent.TestExactly50 object at 0x7f369329bbe0>\n\n def test_ls_recursive_all_levels_all_paths(self):\n \"\"\"Test ls recursive with different levels on all paths\"\"\"\n paths = [\"/tmp/complex_test\", \"/tmp/complex_test/subdir1\"]\n for path in paths:\n for level in [1, 2, 3, 4]:\n result = run(\"ls\", \"-R\", f\"--levels={level}\", f\"--database={COMPLEX_DB}\", path)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-R', '--levels=1', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_exactly_50_percent.py:24: AssertionErrorself = <test_coverage_improvement.TestGraphCommandOptions object at 0x7fd2b8ad0cd0>\n\n def test_graph_levels_option(self):\n \"\"\"Test graph levels option.\"\"\"\n> result = run(\"graph\", \"--levels=5\", \"--help\")\n\ntests/test_coverage_improvement.py:280: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'graph', '--levels=5', '--help']>\nargs = ['./executable', 'graph', '--levels=5', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_final_coverage_push.TestLsRecursiveOptions object at 0x7f5cd3b6cdf0>\n\n def test_ls_with_levels_2(self):\n \"\"\"Test ls with different level\"\"\"\n result = run(\"ls\", \"--levels=2\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--levels=2', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:32: AssertionErrorself = <test_coverage_improvement.TestHistogramCommandOptions object at 0x7fa30f2709a0>\n\n def test_histogram_apparent(self):\n \"\"\"Test histogram with apparent flag.\"\"\"\n> result = run(\"histogram\", \"--apparent\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:364: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'histogram', '--apparent', '-...>\nargs = ['./executable', 'histogram', '--apparent', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_50_percent.TestHistogramAllCombinations object at 0x7f53d09489a0>\n\n def test_histogram_all_flags(self):\n \"\"\"Test histogram with all flags\"\"\"\n result = run(\"histogram\", \"-a\", \"-b\", \"-t\", f\"--database={COMPLEX_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '-a', '-b', '-t', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_50_percent.py:134: AssertionErrorself = <test_final_coverage_push.TestVerboseDebugOutput object at 0x7fbf61956ec0>\n\n def test_info_with_verbose(self):\n \"\"\"Test info with verbose flag\"\"\"\n result = run(\"info\", \"--verbose\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--verbose', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Reading from database \"/tmp/test.db\"\\nError opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:227: AssertionErrorself = <test_final_push.TestLsEdgeCases object at 0x7fd1f3474d30>\n\n def test_ls_directory_flag(self):\n \"\"\"Test ls -D shows directory itself\"\"\"\n result = run(\"ls\", \"-D\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-D', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_final_push.py:22: AssertionErrorself = <test_edge_coverage.TestClassifyOption object at 0x7f9c2ac3bc40>\n\n def test_ls_classify_shows_indicators(self):\n \"\"\"Test ls classify adds indicators\"\"\"\n result = run(\"ls\", \"--classify\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--classify', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:177: AssertionErrorself = <test_coverage_improvement.TestCmdIndexCoverage object at 0x7f6cce6be890>\n\n def test_index_with_username(self):\n \"\"\"Test index --username flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--username=root\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:165: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--username=root', '...>\nargs = ['./executable', 'index', '--username=root', '--database=/tmp/tmppktw4q7w/test.db', '/tmp/tmppktw4q7w/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_coverage_improvement.TestGraphCommandOptions object at 0x7fd2b8ad0c10>\n\n def test_graph_ring_gap(self):\n \"\"\"Test graph ring-gap option.\"\"\"\n> result = run(\"graph\", \"--ring-gap=2\", \"--help\")\n\ntests/test_coverage_improvement.py:286: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'graph', '--ring-gap=2', '--h...>\nargs = ['./executable', 'graph', '--ring-gap=2', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_final_push.TestInfoHistogram object at 0x7f35f26c09a0>\n\n def test_info_histogram_display(self):\n \"\"\"Test info shows histogram\"\"\"\n result = run(\"info\", \"-H\", f\"--database={COMPLEX_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-H', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:111: AssertionErrorself = <test_final_coverage_push.TestLsRecursiveOptions object at 0x7f5cd3b6d5a0>\n\n def test_ls_color(self):\n \"\"\"Test ls --color\"\"\"\n result = run(\"ls\", \"--color\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--color', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:37: AssertionErrorself = <test_final_push.TestXmlJsonEdgeCases object at 0x7f36932275b0>\n\n def test_json_deep_path(self):\n \"\"\"Test JSON with deep path\"\"\"\n result = run(\"json\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test/subdir1/subdir2\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--database=/tmp/complex.db', '/tmp/complex_test/subdir1/subdir2'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:57: AssertionErrorself = <test_coverage_improvement.TestHistogramCommandOptions object at 0x7fa30fb8aa10>\n\n def test_histogram_bytes(self):\n \"\"\"Test histogram with bytes flag.\"\"\"\n> result = run(\"histogram\", \"--bytes\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:370: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'histogram', '--bytes', '--da...>\nargs = ['./executable', 'histogram', '--bytes', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_50_percent.TestInfoAllCombinations object at 0x7f53d09486a0>\n\n def test_info_all_flags(self):\n \"\"\"Test info with all flags\"\"\"\n result = run(\"info\", \"-a\", \"-b\", \"-H\", f\"--database={COMPLEX_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-a', '-b', '-H', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_50_percent.py:143: AssertionErrorself = <test_final_coverage_push.TestVerboseDebugOutput object at 0x7fbf61956500>\n\n def test_ls_with_verbose(self):\n \"\"\"Test ls with verbose flag\"\"\"\n result = run(\"ls\", \"-v\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-v', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Reading from database \"/tmp/test.db\"\\nError opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:233: AssertionErrorself = <test_final_coverage_push.TestXmlJsonRobustness object at 0x7f9c2af2eec0>\n\n def test_json_root_path(self):\n \"\"\"Test JSON with root path\"\"\"\n result = run(\"json\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:59: AssertionErrorself = <test_final_push.TestLsEdgeCases object at 0x7fd1f3474a30>\n\n def test_ls_recursive_levels_max(self):\n \"\"\"Test ls with maximum levels\"\"\"\n result = run(\"ls\", \"-R\", \"-l\", \"99\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-R', '-l', '99', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_final_push.py:27: AssertionErrorself = <test_coverage_improvement.TestCmdIndexCoverage object at 0x7f6cce6becb0>\n\n def test_index_with_fs_exclude(self):\n \"\"\"Test index --fs-exclude flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--fs-exclude=tmpfs,proc\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:177: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--fs-exclude=tmpfs,...>\nargs = ['./executable', 'index', '--fs-exclude=tmpfs,proc', '--database=/tmp/tmpk7x_z_o7/test.db', '/tmp/tmpk7x_z_o7/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_coverage_improvement.TestGraphCommandOptions object at 0x7fd2b903eaa0>\n\n def test_graph_fuzz(self):\n \"\"\"Test graph fuzz option.\"\"\"\n> result = run(\"graph\", \"--fuzz=0.5\", \"--help\")\n\ntests/test_coverage_improvement.py:292: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'graph', '--fuzz=0.5', '--help']>\nargs = ['./executable', 'graph', '--fuzz=0.5', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_final_push.TestLsFullPathRecursive object at 0x7f35f26c1840>\n\n def test_ls_full_path_recursive_nested(self):\n \"\"\"Test full-path on nested structure\"\"\"\n result = run(\"ls\", \"--full-path\", \"-R\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--full-path', '-R', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_final_push.py:123: AssertionErrorself = <test_final_coverage_push.TestLsRecursiveOptions object at 0x7f5cd3b6d4b0>\n\n def test_ls_dirs_only(self):\n \"\"\"Test ls --dirs-only\"\"\"\n result = run(\"ls\", \"--dirs-only\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--dirs-only', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:43: AssertionErrorself = <test_final_push.TestXmlJsonEdgeCases object at 0x7f3693227520>\n\n def test_xml_apparent_exclude_min(self):\n \"\"\"Test XML with all filters\"\"\"\n result = run(\"xml\", \"-a\", \"-x\", \"-s\", \"1\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '-a', '-x', '-s', '1', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:64: AssertionErrorself = <test_coverage_improvement.TestHistogramCommandOptions object at 0x7fa30fb88af0>\n\n def test_histogram_base10(self):\n \"\"\"Test histogram with base10 flag.\"\"\"\n> result = run(\"histogram\", \"--base10\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:376: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'histogram', '--base10', '--d...>\nargs = ['./executable', 'histogram', '--base10', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_final_coverage_push.TestVerboseDebugOutput object at 0x7fbf619c9630>\n\n def test_histogram_with_debug(self):\n \"\"\"Test histogram with debug flag\"\"\"\n result = run(\"histogram\", \"--debug\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '--debug', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Reading from database \"/tmp/test.db\"\\nError opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:239: AssertionErrorself = <test_final_coverage_push.TestXmlJsonRobustness object at 0x7f9c2af2f3a0>\n\n def test_xml_apparent_and_min_size(self):\n \"\"\"Test XML with multiple filters\"\"\"\n result = run(\"xml\", \"--apparent\", \"--min_size=0\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--apparent', '--min_size=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:65: AssertionErrorself = <test_final_push.TestXmlJsonEdgeCases object at 0x7fd1f2ac39a0>\n\n def test_xml_deep_path(self):\n \"\"\"Test XML with deep path\"\"\"\n result = run(\"xml\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test/subdir1/subdir2\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--database=/tmp/complex.db', '/tmp/complex_test/subdir1/subdir2'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:50: AssertionErrorself = <test_coverage_improvement.TestCmdIndexCoverage object at 0x7f6cce6bf010>\n\n def test_index_with_fs_include(self):\n \"\"\"Test index --fs-include flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--fs-include=ext4,xfs\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:189: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--fs-include=ext4,x...>\nargs = ['./executable', 'index', '--fs-include=ext4,xfs', '--database=/tmp/tmpv3x2vgy7/test.db', '/tmp/tmpv3x2vgy7/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_coverage_improvement.TestGraphCommandOptions object at 0x7fd2b903ea70>\n\n def test_graph_gradient(self):\n \"\"\"Test graph gradient flag.\"\"\"\n> result = run(\"graph\", \"--gradient\", \"--help\")\n\ntests/test_coverage_improvement.py:298: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'graph', '--gradient', '--help']>\nargs = ['./executable', 'graph', '--gradient', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_last_10_lines.TestLast10Lines object at 0x7f53cbfda980>\n\n def test_ls_every_option_combination(self):\n \"\"\"Test ls with every option\"\"\"\n result = run(\"ls\", \"-a\", \"-b\", \"-F\", \"-c\", \"-g\", \"-R\", \"-n\", \"-D\",\n \"--ascii\", \"--count\", \"--dirs-only\", \"--full-path\",\n \"--levels=2\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-a', '-b', '-F', '-c', '-g', '-R', '-n', '-D', '--ascii', '--count', '--dirs-only', '--full-path', '--levels=2', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_last_10_lines.py:34: AssertionErrorself = <test_final_coverage_push.TestXmlJsonRobustness object at 0x7f5cd80c28f0>\n\n def test_xml_root_path(self):\n \"\"\"Test XML with root path\"\"\"\n result = run(\"xml\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:53: AssertionErrorself = <test_final_push.TestXmlJsonEdgeCases object at 0x7f3693227c10>\n\n def test_json_apparent_exclude_min(self):\n \"\"\"Test JSON with all filters\"\"\"\n result = run(\"json\", \"-a\", \"-x\", \"-s\", \"1\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '-a', '-x', '-s', '1', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:71: AssertionErrorself = <test_coverage_improvement.TestHistogramCommandOptions object at 0x7fa30fb8a560>\n\n def test_histogram_short_options(self):\n \"\"\"Test histogram with short options.\"\"\"\n> result = run(\"histogram\", \"-a\", \"-b\", \"-t\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:382: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'histogram', '-a', '-b', '-t'...>\nargs = ['./executable', 'histogram', '-a', '-b', '-t', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_more_coverage.TestOptionFormatVariations object at 0x7f35f31618a0>\n\n def test_database_long_form(self):\n \"\"\"Test long form database option\"\"\"\n result = run(\"info\", \"--database=/tmp/test.db\")\n # Database works now\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:205: AssertionErrorself = <test_final_coverage_push.TestVerboseDebugOutput object at 0x7fbf619c8ac0>\n\n def test_xml_with_quiet(self):\n \"\"\"Test XML with quiet flag\"\"\"\n result = run(\"xml\", \"--quiet\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--quiet', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:245: AssertionErrorself = <test_final_coverage_push.TestXmlJsonRobustness object at 0x7f9c2af2f190>\n\n def test_json_apparent_and_min_size(self):\n \"\"\"Test JSON with multiple filters\"\"\"\n result = run(\"json\", \"--apparent\", \"--min_size=0\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--apparent', '--min_size=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:71: AssertionErrorself = <test_coverage_improvement.TestCmdIndexCoverage object at 0x7f6cce6bee90>\n\n def test_index_short_options(self):\n \"\"\"Test index with short options.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"-b\", \"-p\", f\"-d{dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:201: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '-b', '-p', '-d/tmp/...>\nargs = ['./executable', 'index', '-b', '-p', '-d/tmp/tmpfhp7yx5j/test.db', '/tmp/tmpfhp7yx5j/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_coverage_improvement.TestGraphCommandOptions object at 0x7fd2b903fc10>\n\n def test_graph_bytes(self):\n \"\"\"Test graph bytes flag.\"\"\"\n> result = run(\"graph\", \"--bytes\", \"--help\")\n\ntests/test_coverage_improvement.py:304: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'graph', '--bytes', '--help']>\nargs = ['./executable', 'graph', '--bytes', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_more_coverage.TestOptionFormatVariations object at 0x7fd1f34ffa90>\n\n def test_apparent_long_form(self):\n \"\"\"Test long form apparent option\"\"\"\n result = run(\"info\", \"--apparent\", \"--database=/tmp/test.db\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--apparent', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:232: AssertionErrorself = <test_last_10_lines.TestLast10Lines object at 0x7f53cbfc2560>\n\n def test_xml_json_all_combinations_all_paths(self):\n \"\"\"Test XML and JSON with all option combinations on all paths\"\"\"\n paths = [\"/tmp/complex_test\", \"/tmp/complex_test/subdir1\",\n \"/tmp/complex_test/subdir1/subdir2\"]\n for path in paths:\n result = run(\"xml\", \"-a\", \"-x\", \"-s\", \"10\", f\"--database={COMPLEX_DB}\", path)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '-a', '-x', '-s', '10', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_last_10_lines.py:55: AssertionErrorself = <test_final_push.TestHistogramVariations object at 0x7f3693226680>\n\n def test_histogram_base10_bytes(self):\n \"\"\"Test histogram with base10 and bytes\"\"\"\n result = run(\"histogram\", \"-t\", \"-b\", f\"--database={COMPLEX_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '-t', '-b', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:96: AssertionErrorself = <test_coverage_improvement.TestTopnCommandOptions object at 0x7fa30fb8a080>\n\n def test_topn_apparent(self):\n \"\"\"Test topn with apparent flag.\"\"\"\n> result = run(\"topn\", \"--apparent\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:391: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'topn', '--apparent', '--data...>\nargs = ['./executable', 'topn', '--apparent', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_more_coverage.TestOptionFormatVariations object at 0x7f35f3162800>\n\n def test_database_short_form(self):\n \"\"\"Test short form database option\"\"\"\n result = run(\"info\", \"-d\", \"/tmp/test.db\")\n # Database works now\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:212: AssertionErrorself = <test_final_coverage_push.TestShortFormOptions object at 0x7fbf619caa10>\n\n def test_info_short_options(self):\n \"\"\"Test info with all short options\"\"\"\n result = run(\"info\", \"-a\", \"-b\", \"-d\", TEST_DB)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-a', '-b', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:254: AssertionErrorself = <test_coverage_improvement.TestDatabasePathHandling object at 0x7f6cce6be980>\n\n def test_database_with_equals_sign(self):\n \"\"\"Test --database=path format.\"\"\"\n> result = run(\"ls\", \"--database=/tmp/test.db\")\n\ntests/test_coverage_improvement.py:210: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'ls', '--database=/tmp/test.db']>\nargs = ['./executable', 'ls', '--database=/tmp/test.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_coverage_improvement.TestGraphCommandOptions object at 0x7fd2b8ad0520>\n\n def test_graph_apparent(self):\n \"\"\"Test graph apparent flag.\"\"\"\n> result = run(\"graph\", \"--apparent\", \"--help\")\n\ntests/test_coverage_improvement.py:310: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'graph', '--apparent', '--help']>\nargs = ['./executable', 'graph', '--apparent', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_more_coverage.TestEdgeCases object at 0x7f9c2b080700>\n\n def test_multiple_database_options(self):\n \"\"\"Test multiple database options (last wins)\"\"\"\n result = run(\"info\", \"-d\", \"/first.db\", \"--database=/tmp/test.db\")\n # Last wins, should use /tmp/test.db which exists\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-d', '/first.db', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:472: AssertionErrorself = <test_more_coverage.TestOptionFormatVariations object at 0x7fd1f30ed630>\n\n def test_apparent_short_form(self):\n \"\"\"Test short form apparent option\"\"\"\n result = run(\"info\", \"-a\", \"-d\", \"/tmp/test.db\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-a', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:240: AssertionErrorself = <test_last_10_lines.TestLast10Lines object at 0x7f53cbfc3df0>\n\n def test_info_histogram_all_paths(self):\n \"\"\"Test info --histogram on all databases\"\"\"\n result = run(\"info\", \"-a\", \"-b\", \"-H\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-a', '-b', '-H', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_last_10_lines.py:62: AssertionErrorself = <test_final_push.TestHistogramVariations object at 0x7f36930636a0>\n\n def test_histogram_apparent_base10(self):\n \"\"\"Test histogram with apparent and base10\"\"\"\n result = run(\"histogram\", \"-a\", \"--base10\", f\"--database={COMPLEX_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '-a', '--base10', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:102: AssertionErrorself = <test_coverage_improvement.TestTopnCommandOptions object at 0x7fa30fb884f0>\n\n def test_topn_bytes(self):\n \"\"\"Test topn with bytes flag.\"\"\"\n> result = run(\"topn\", \"--bytes\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:397: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'topn', '--bytes', '--databas...>\nargs = ['./executable', 'topn', '--bytes', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_more_coverage.TestOptionFormatVariations object at 0x7f35f31625c0>\n\n def test_bytes_long_form(self):\n \"\"\"Test long form bytes option\"\"\"\n result = run(\"info\", \"--bytes\", \"--database=/tmp/test.db\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--bytes', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:218: AssertionErrorself = <test_final_coverage_push.TestShortFormOptions object at 0x7fbf619cab90>\n\n def test_ls_short_options(self):\n \"\"\"Test ls with short options\"\"\"\n result = run(\"ls\", \"-b\", \"-F\", \"-c\", \"-g\", \"-d\", TEST_DB, \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-b', '-F', '-c', '-g', '-d', '/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:260: AssertionErrorself = <test_coverage_improvement.TestDatabasePathHandling object at 0x7f6cce6bdc30>\n\n def test_database_with_space(self):\n \"\"\"Test --database path format.\"\"\"\n> result = run(\"ls\", \"--database\", \"/tmp/test.db\")\n\ntests/test_coverage_improvement.py:216: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'ls', '--database', '/tmp/tes...>\nargs = ['./executable', 'ls', '--database', '/tmp/test.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_coverage_improvement.TestGraphCommandOptions object at 0x7fd2b8ad05e0>\n\n def test_graph_count(self):\n \"\"\"Test graph count flag.\"\"\"\n> result = run(\"graph\", \"--count\", \"--help\")\n\ntests/test_coverage_improvement.py:316: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'graph', '--count', '--help']>\nargs = ['./executable', 'graph', '--count', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_over_50.TestMore object at 0x7f5cd8561660>\n\n def test_xml_minsize_variations(self):\n \"\"\"Test XML with various min sizes\"\"\"\n for size in [5, 50, 500]:\n result = run(\"xml\", f\"--min_size={size}\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--min_size=5', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_over_50.py:33: AssertionErrorself = <test_over_50.TestMore object at 0x7f9c2b068eb0>\n\n def test_ls_bytes_variations(self):\n \"\"\"Test ls bytes with different paths\"\"\"\n result = run(\"ls\", \"-b\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-b', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_over_50.py:58: AssertionErrorself = <test_last_10_lines.TestLast10Lines object at 0x7f53cbfc2980>\n\n def test_histogram_all_options_both_dbs(self):\n \"\"\"Test histogram with all options on both DBs\"\"\"\n result = run(\"histogram\", \"-a\", \"-b\", \"-t\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '-a', '-b', '-t', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_last_10_lines.py:71: AssertionErrorself = <test_coverage_improvement.TestTopnCommandOptions object at 0x7fa30fb8a620>\n\n def test_topn_short_options(self):\n \"\"\"Test topn with short options.\"\"\"\n> result = run(\"topn\", \"-a\", \"-b\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:403: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'topn', '-a', '-b', '--databa...>\nargs = ['./executable', 'topn', '-a', '-b', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_push_to_50_final.TestErrorPaths object at 0x7fd1f342db10>\n\n def test_ls_recursive_depth_boundary(self):\n \"\"\"Test ls recursive with boundary depths\"\"\"\n for depth in [0, 1, 100]:\n result = run(\"ls\", \"-R\", f\"--levels={depth}\", f\"--database={COMPLEX_DB}\",\n \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-R', '--levels=0', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_push_to_50_final.py:60: AssertionErrorself = <test_more_coverage.TestOptionFormatVariations object at 0x7f35f3162110>\n\n def test_bytes_short_form(self):\n \"\"\"Test short form bytes option\"\"\"\n result = run(\"info\", \"-b\", \"-d\", \"/tmp/test.db\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-b', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:226: AssertionErrorself = <test_quick_database_ops.TestQuickOps object at 0x7f369311dcc0>\n\n def test_ls_basic_output(self):\n \"\"\"Test ls produces output.\"\"\"\n> dbfile, testdir, tmpdir = create_tiny_db()\n\ntests/test_quick_database_ops.py:34: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_quick_database_ops.py:24: in create_tiny_db\n result = run(\"index\", f\"--database={dbfile}\", str(testdir))\ntests/test_quick_database_ops.py:12: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--database=/tmp/tmp...>\nargs = ['./executable', 'index', '--database=/tmp/tmpqkxh31ck/d.db', '/tmp/tmpqkxh31ck/t']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None, env = None, startupinfo = None, creationflags = 0, shell = False\np2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16\nerrwrite = 17, restore_signals = True, gid = None, gids = None, uid = None\numask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_final_coverage_push.TestDatabasePaths object at 0x7fbf611bb640>\n\n def test_absolute_database_path(self):\n \"\"\"Test absolute database path\"\"\"\n result = run(\"info\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:275: AssertionErrorself = <test_coverage_improvement.TestDatabasePathHandling object at 0x7f6cce6bded0>\n\n def test_database_short_form(self):\n \"\"\"Test -d database short form.\"\"\"\n> result = run(\"ls\", \"-d\", \"/tmp/test.db\")\n\ntests/test_coverage_improvement.py:222: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'ls', '-d', '/tmp/test.db']>\nargs = ['./executable', 'ls', '-d', '/tmp/test.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_over_50.TestMore object at 0x7fd2b88f4460>\n\n def test_ls_with_path_variations1(self):\n \"\"\"Test ls with path ending in slash\"\"\"\n result = run(\"ls\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test/\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--database=/tmp/complex.db', '/tmp/complex_test/'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_over_50.py:22: AssertionErrorself = <test_over_50.TestMore object at 0x7f5cd8563d90>\n\n def test_json_minsize_variations(self):\n \"\"\"Test JSON with various min sizes\"\"\"\n for size in [5, 50, 500]:\n result = run(\"json\", f\"--min_size={size}\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--min_size=5', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_over_50.py:39: AssertionError/workspace/eval/tests/test_recursive_structures.py:24: Complex test database /tmp/complex.db does not exist/workspace/eval/tests/test_recursive_structures.py:33: Complex test database /tmp/complex.db does not exist/workspace/eval/tests/test_recursive_structures.py:40: Complex test database /tmp/complex.db does not exist/workspace/eval/tests/test_recursive_structures.py:68: Complex test database /tmp/complex.db does not exist/workspace/eval/tests/test_recursive_structures.py:52: Complex test database /tmp/complex.db does not exist/workspace/eval/tests/test_recursive_structures.py:80: Complex test database /tmp/complex.db does not exist/workspace/eval/tests/test_recursive_structures.py:61: Complex test database /tmp/complex.db does not exist/workspace/eval/tests/test_recursive_structures.py:89: Complex test database /tmp/complex.db does not exist/workspace/eval/tests/test_recursive_structures.py:107: Complex test database /tmp/complex.db does not exist/workspace/eval/tests/test_recursive_structures.py:97: Complex test database /tmp/complex.db does not exist/workspace/eval/tests/test_recursive_structures.py:115: Complex test database /tmp/complex.db does not exist/workspace/eval/tests/test_recursive_structures.py:125: Complex test database /tmp/complex.db does not exist/workspace/eval/tests/test_recursive_structures.py:147: Complex test database /tmp/complex.db does not exist/workspace/eval/tests/test_recursive_structures.py:135: Complex test database /tmp/complex.db does not exist/workspace/eval/tests/test_recursive_structures.py:160: Complex test database /tmp/complex.db does not existself = <test_coverage_targeted.TestManualCommand object at 0x7fa30f6954b0>\n\n def test_manual_command_exists(self):\n \"\"\"Test manual command generates documentation.\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n> assert b\"### Global options\" in result.stdout\nE assert b'### Global options' in b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc <cmd> [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help <subcommand>' or 'duc <subcommand> -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_coverage_targeted.py:16: AssertionErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7f9c2ae686a0>\n\n def test_help_output(self):\n \"\"\"Test main help command.\"\"\"\n> result = run(\"--help\")\n\ntests/test_streamlined.py:36: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', '--help']>\nargs = ['./executable', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7f53d0abcaf0>\n\n def test_version_output(self):\n \"\"\"Test version command output format.\"\"\"\n> result = run(\"--version\")\n\ntests/test_streamlined.py:27: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', '--version']>\nargs = ['./executable', '--version'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7fd1f2efd1b0>\n\n def test_index_help(self):\n \"\"\"Test index command help.\"\"\"\n> result = run(\"index\", \"--help\")\n\ntests/test_streamlined.py:61: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--help']>\nargs = ['./executable', 'index', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_quick_database_ops.TestQuickOps object at 0x7f35f3156c20>\n\n def test_xml_generates_xml(self):\n \"\"\"Test xml generates valid xml.\"\"\"\n> dbfile, testdir, tmpdir = create_tiny_db()\n\ntests/test_quick_database_ops.py:60: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_quick_database_ops.py:24: in create_tiny_db\n result = run(\"index\", f\"--database={dbfile}\", str(testdir))\ntests/test_quick_database_ops.py:12: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--database=/tmp/tmp...>\nargs = ['./executable', 'index', '--database=/tmp/tmpckk8xxv1/d.db', '/tmp/tmpckk8xxv1/t']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None, env = None, startupinfo = None, creationflags = 0, shell = False\np2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16\nerrwrite = 17, restore_signals = True, gid = None, gids = None, uid = None\numask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_quick_database_ops.TestQuickOps object at 0x7f369311c9a0>\n\n def test_info_shows_data(self):\n \"\"\"Test info shows database info.\"\"\"\n> dbfile, testdir, tmpdir = create_tiny_db()\n\ntests/test_quick_database_ops.py:47: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_quick_database_ops.py:24: in create_tiny_db\n result = run(\"index\", f\"--database={dbfile}\", str(testdir))\ntests/test_quick_database_ops.py:12: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--database=/tmp/tmp...>\nargs = ['./executable', 'index', '--database=/tmp/tmphtdppd8o/d.db', '/tmp/tmphtdppd8o/t']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None, env = None, startupinfo = None, creationflags = 0, shell = False\np2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16\nerrwrite = 17, restore_signals = True, gid = None, gids = None, uid = None\numask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_reach_50.TestLsMaxOptions object at 0x7fbf619b7040>\n\n def test_ls_all_options_combo1(self):\n \"\"\"Test ls with many options combo 1\"\"\"\n result = run(\"ls\", \"-b\", \"-a\", \"-F\", \"-c\", \"-g\", \"-R\", \"-n\",\n f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-b', '-a', '-F', '-c', '-g', '-R', '-n', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_reach_50.py:22: AssertionErrorself = <test_reach_50.TestLsMaxOptions object at 0x7f6cce512560>\n\n def test_ls_full_path_name_sort_levels(self):\n \"\"\"Test ls with full-path, name-sort, and levels\"\"\"\n result = run(\"ls\", \"--full-path\", \"--name-sort\", \"--levels=3\", \"-R\",\n f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--full-path', '--name-sort', '--levels=3', '-R', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_reach_50.py:35: AssertionErrorself = <test_over_50.TestMore object at 0x7fd2b88f62c0>\n\n def test_ls_with_path_variations2(self):\n \"\"\"Test ls subdir\"\"\"\n result = run(\"ls\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test/subdir1/\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--database=/tmp/complex.db', '/tmp/complex_test/subdir1/'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_over_50.py:27: AssertionErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7f5cd3eed660>\n\n def test_topn_help(self):\n \"\"\"Test topn command help.\"\"\"\n> result = run(\"topn\", \"--help\")\n\ntests/test_streamlined.py:94: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'topn', '--help']>\nargs = ['./executable', 'topn', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7f9c2ae68730>\n\n def test_manual_subcommand(self):\n \"\"\"Test the hidden manual subcommand.\"\"\"\n> result = run(\"manual\")\n\ntests/test_streamlined.py:54: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'manual']>\nargs = ['./executable', 'manual'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7f53d0abde70>\n\n def test_help_all(self):\n \"\"\"Test help --all command.\"\"\"\n> result = run(\"help\", \"--all\")\n\ntests/test_streamlined.py:46: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'help', '--all']>\nargs = ['./executable', 'help', '--all'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7fa30fb88490>\n\n def test_graph_help(self):\n \"\"\"Test graph command help.\"\"\"\n> result = run(\"graph\", \"--help\")\n\ntests/test_streamlined.py:117: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'graph', '--help']>\nargs = ['./executable', 'graph', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_quick_database_ops.TestQuickOps object at 0x7f35f31566e0>\n\n def test_json_generates_json(self):\n \"\"\"Test json generates valid json.\"\"\"\n> dbfile, testdir, tmpdir = create_tiny_db()\n\ntests/test_quick_database_ops.py:73: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_quick_database_ops.py:24: in create_tiny_db\n result = run(\"index\", f\"--database={dbfile}\", str(testdir))\ntests/test_quick_database_ops.py:12: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--database=/tmp/tmp...>\nargs = ['./executable', 'index', '--database=/tmp/tmp2ucrj2r7/d.db', '/tmp/tmp2ucrj2r7/t']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None, env = None, startupinfo = None, creationflags = 0, shell = False\np2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16\nerrwrite = 17, restore_signals = True, gid = None, gids = None, uid = None\numask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7fd1f2efc0d0>\n\n def test_ls_help(self):\n \"\"\"Test ls command help.\"\"\"\n> result = run(\"ls\", \"--help\")\n\ntests/test_streamlined.py:70: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'ls', '--help']>\nargs = ['./executable', 'ls', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7f369323a080>\n\n def test_histogram_help(self):\n \"\"\"Test histogram command help.\"\"\"\n> result = run(\"histogram\", \"--help\")\n\ntests/test_streamlined.py:78: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'histogram', '--help']>\nargs = ['./executable', 'histogram', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_reach_50.TestLsMaxOptions object at 0x7fbf619b6a70>\n\n def test_ls_all_options_combo2(self):\n \"\"\"Test ls with many options combo 2\"\"\"\n result = run(\"ls\", \"--bytes\", \"--apparent\", \"--classify\", \"--graph\",\n \"--ascii\", \"--count\", \"--dirs-only\",\n f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--bytes', '--apparent', '--classify', '--graph', '--ascii', '--count', '--dirs-only', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_reach_50.py:29: AssertionErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7f6cceb9f6d0>\n\n def test_index_dry_run(self):\n \"\"\"Test index with --dry-run flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n testdir = Path(tmpdir) / \"test\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"test\")\n> result = run(\"index\", \"--dry-run\", str(testdir))\n\ntests/test_streamlined.py:166: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--dry-run', '/tmp/t...>\nargs = ['./executable', 'index', '--dry-run', '/tmp/tmp1ynhhymk/test']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7fd2b88e58d0>\n\n def test_info_help(self):\n \"\"\"Test info command help.\"\"\"\n> result = run(\"info\", \"--help\")\n\ntests/test_streamlined.py:86: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'info', '--help']>\nargs = ['./executable', 'info', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7f5cd3eec1f0>\n\n def test_json_help(self):\n \"\"\"Test json command help.\"\"\"\n> result = run(\"json\", \"--help\")\n\ntests/test_streamlined.py:101: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'json', '--help']>\nargs = ['./executable', 'json', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7f9c2abfe020>\n\n def test_xml_help(self):\n \"\"\"Test xml command help.\"\"\"\n> result = run(\"xml\", \"--help\")\n\ntests/test_streamlined.py:109: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'xml', '--help']>\nargs = ['./executable', 'xml', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7fa30f275a80>\n\n def test_ui_help(self):\n \"\"\"Test ui command help.\"\"\"\n> result = run(\"ui\", \"--help\")\n\ntests/test_streamlined.py:133: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'ui', '--help']>\nargs = ['./executable', 'ui', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7f53d0896680>\n\n def test_gui_help(self):\n \"\"\"Test gui command help.\"\"\"\n> result = run(\"gui\", \"--help\")\n\ntests/test_streamlined.py:125: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'gui', '--help']>\nargs = ['./executable', 'gui', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_quick_database_ops.TestQuickOps object at 0x7f35f3156aa0>\n\n def test_histogram_shows_distribution(self):\n \"\"\"Test histogram shows data.\"\"\"\n> dbfile, testdir, tmpdir = create_tiny_db()\n\ntests/test_quick_database_ops.py:86: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_quick_database_ops.py:24: in create_tiny_db\n result = run(\"index\", f\"--database={dbfile}\", str(testdir))\ntests/test_quick_database_ops.py:12: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--database=/tmp/tmp...>\nargs = ['./executable', 'index', '--database=/tmp/tmponz4tp2h/d.db', '/tmp/tmponz4tp2h/t']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None, env = None, startupinfo = None, creationflags = 0, shell = False\np2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16\nerrwrite = 17, restore_signals = True, gid = None, gids = None, uid = None\numask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7f369323bf40>\n\n def test_database_error_missing(self):\n \"\"\"Test that missing database produces correct error.\"\"\"\n> result = run(\"ls\", \"--database=/nonexistent/path.db\")\n\ntests/test_streamlined.py:149: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'ls', '--database=/nonexisten...>\nargs = ['./executable', 'ls', '--database=/nonexistent/path.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7fd1f2eff8b0>\n\n def test_cgi_help(self):\n \"\"\"Test cgi command help.\"\"\"\n> result = run(\"cgi\", \"--help\")\n\ntests/test_streamlined.py:141: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'cgi', '--help']>\nargs = ['./executable', 'cgi', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7fbf6142a470>\n\n def test_database_error_directory(self):\n \"\"\"Test that using a directory as database produces error.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n> result = run(\"ls\", f\"--database={tmpdir}\")\n\ntests/test_streamlined.py:156: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'ls', '--database=/tmp/tmpoco...>\nargs = ['./executable', 'ls', '--database=/tmp/tmpocoiuzrf']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7f6cceb9dc30>\n\n def test_verbose_flag(self):\n \"\"\"Test that verbose flag is recognized.\"\"\"\n> result = run(\"--verbose\", \"--help\")\n\ntests/test_streamlined.py:172: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', '--verbose', '--help']>\nargs = ['./executable', '--verbose', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7fd2b88e5ed0>\n\n def test_debug_flag(self):\n \"\"\"Test that debug flag is recognized.\"\"\"\n> result = run(\"--debug\", \"--help\")\n\ntests/test_streamlined.py:178: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', '--debug', '--help']>\nargs = ['./executable', '--debug', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7f5cd3eecdc0>\n\n def test_quiet_flag(self):\n \"\"\"Test that quiet flag is recognized.\"\"\"\n> result = run(\"--quiet\", \"--help\")\n\ntests/test_streamlined.py:184: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', '--quiet', '--help']>\nargs = ['./executable', '--quiet', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7f9c2abfc940>\n\n def test_invalid_command(self):\n \"\"\"Test invalid subcommand.\"\"\"\n> result = run(\"invalid_command_xyz\")\n\ntests/test_streamlined.py:190: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'invalid_command_xyz']>\nargs = ['./executable', 'invalid_command_xyz'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7fa30fb8b400>\n\n def test_index_exclude_pattern(self):\n \"\"\"Test index with exclude pattern (help text validation).\"\"\"\n> result = run(\"index\", \"--help\")\n\ntests/test_streamlined.py:196: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--help']>\nargs = ['./executable', 'index', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7f53d0abf250>\n\n def test_index_max_depth(self):\n \"\"\"Test index with max-depth option (help text validation).\"\"\"\n> result = run(\"index\", \"--help\")\n\ntests/test_streamlined.py:202: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'index', '--help']>\nargs = ['./executable', 'index', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7f35f3161ba0>\n\n def test_ls_levels_option(self):\n \"\"\"Test ls levels option (help text validation).\"\"\"\n> result = run(\"ls\", \"--help\")\n\ntests/test_streamlined.py:208: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'ls', '--help']>\nargs = ['./executable', 'ls', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7f369323b8e0>\n\n def test_graph_palette_option(self):\n \"\"\"Test graph palette option (help text validation).\"\"\"\n> result = run(\"graph\", \"--help\")\n\ntests/test_streamlined.py:214: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'graph', '--help']>\nargs = ['./executable', 'graph', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7fd1f3148eb0>\n\n def test_cgi_mode_not_activated(self):\n \"\"\"Test that cgi command runs but indicates it needs CGI environment.\"\"\"\n> result = run(\"cgi\")\n\ntests/test_streamlined.py:221: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'cgi']>\nargs = ['./executable', 'cgi'], executable = b'./executable', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7fbf6142b310>\n\n def test_environment_variable_handling(self):\n \"\"\"Test DUC_DATABASE environment variable.\"\"\"\n> result = run(\"ls\", \"--help\", env={\"DUC_DATABASE\": \"/tmp/test.db\"})\n\ntests/test_streamlined.py:227: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', 'ls', '--help']>\nargs = ['./executable', 'ls', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'DUC_DATABASE': '/tmp/test.db', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7f6cce4e1d50>\n\n def test_xdg_cache_home(self):\n \"\"\"Test XDG_CACHE_HOME environment variable.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n> result = run(\"--help\", env={\"XDG_CACHE_HOME\": tmpdir})\n\ntests/test_streamlined.py:234: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', '--help']>\nargs = ['./executable', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundErrorself = <test_streamlined.TestNonDatabaseFeatures object at 0x7fd2b8c07760>\n\n def test_home_directory_fallback(self):\n \"\"\"Test HOME environment variable fallback.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n> result = run(\"--help\", env={\"HOME\": tmpdir})\n\ntests/test_streamlined.py:241: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <Popen: returncode: 255 args: ['./executable', '--help']>\nargs = ['./executable', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError", "returncode": 0, "exception_info": "", "branch": "63ece4f28ebd"}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.08858919283375144, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.10179413622245193, "output": "7ae9102aba73859306e3c979af8d6d64017de056bdef6117df20f2f7c57fe130 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.10642022686079144, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.09655446885153651, "output": "", "returncode": 0, "exception_info": ""}, {"step": "install_pytest_timeout_retry", "command": "mkdir -p /tmp/programbench-grader-plugins && rm -f /tmp/programbench-grader-plugins/programbench_pytest_timeout.py", "wall_time": 0.09497033897787333, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PROGRAMBENCH_PYTEST_ORIGINAL_PYTHONPATH=\"${PYTHONPATH-}\" && export PROGRAMBENCH_PYTEST_ORIGINAL_ADDOPTS=\"${PYTEST_ADDOPTS-}\" && export PYTHONPATH=\"/tmp/programbench-grader-plugins${PYTHONPATH:+:$PYTHONPATH}\" && export PYTEST_ADDOPTS=\"${PYTEST_ADDOPTS:-} -p programbench_pytest_timeout --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 45.4685808471404, "output": "============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3\ncachedir: .pytest_cache\nrootdir: /workspace/eval\nplugins: timeout-2.4.0, rerunfailures-16.4, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 30.0s\ntimeout method: signal\ntimeout func_only: False\ncreated: 10/10 workers\n10 workers [230 items]\n\nscheduling tests via LoadScheduling\n\ntests/test_cgi.py::test_cgi_count_option \ntests/test_harvest.py::test_empty_directory_indexing \ntests/test_harvest.py::test_ls_output_checksum \ntests/test_index.py::test_index_hard_links_with_check_flag_counts_once \ntests/test_harvest.py::test_index_verbose_output \ntests/test_harvest.py::test_utf8_filenames \ntests/test_cgi.py::test_cgi_nonexistent_path \ntests/test_index.py::test_index_dry_run_no_database \ntests/test_index.py::test_index_multiple_directories \ntests/test_cgi.py::test_cgi_requires_gateway_interface \n[gw0] [ 0%] PASSED tests/test_cgi.py::test_cgi_requires_gateway_interface \n[gw6] [ 0%] PASSED tests/test_harvest.py::test_empty_directory_indexing \ntests/test_harvest.py::test_single_file_indexing \ntests/test_cgi.py::test_cgi_basic_index_list \n[gw8] [ 1%] PASSED tests/test_index.py::test_index_dry_run_no_database \ntests/test_index.py::test_index_large_file_tree \n[gw2] [ 1%] PASSED tests/test_cgi.py::test_cgi_count_option \ntests/test_cgi.py::test_cgi_custom_size \n[gw9] [ 2%] PASSED tests/test_index.py::test_index_hard_links_with_check_flag_counts_once \ntests/test_index.py::test_index_max_depth_limits_stored_directories \n[gw4] [ 2%] PASSED tests/test_harvest.py::test_utf8_filenames \ntests/test_harvest.py::test_deep_directory_nesting \n[gw6] [ 3%] PASSED tests/test_harvest.py::test_single_file_indexing \ntests/test_harvest.py::test_info_command \n[gw5] [ 3%] PASSED tests/test_harvest.py::test_index_verbose_output \ntests/test_harvest.py::test_index_debug_output \n[gw7] [ 3%] PASSED tests/test_index.py::test_index_multiple_directories \ntests/test_index.py::test_index_empty_directory \n[gw0] [ 4%] PASSED tests/test_cgi.py::test_cgi_basic_index_list \ntests/test_cgi.py::test_cgi_index_with_specific_path \n[gw8] [ 4%] PASSED tests/test_index.py::test_index_large_file_tree \ntests/test_index.py::test_index_exclude_pattern \n[gw7] [ 5%] PASSED tests/test_index.py::test_index_empty_directory \ntests/test_index.py::test_index_nonexistent_path_error \n[gw9] [ 5%] PASSED tests/test_index.py::test_index_max_depth_limits_stored_directories \n[gw6] [ 6%] PASSED tests/test_harvest.py::test_info_command \n[gw2] [ 6%] PASSED tests/test_cgi.py::test_cgi_custom_size \ntests/test_index.py::test_index_progress_flag_shows_meter \ntests/test_harvest.py::test_multiple_index_runs \ntests/test_cgi.py::test_cgi_tooltip_option \n[gw3] [ 6%] PASSED tests/test_harvest.py::test_ls_output_checksum \ntests/test_harvest.py::test_regular_tree_indexing \n[gw4] [ 7%] PASSED tests/test_harvest.py::test_deep_directory_nesting \ntests/test_harvest.py::test_database_backend_compatibility \n[gw7] [ 7%] PASSED tests/test_index.py::test_index_nonexistent_path_error \ntests/test_index.py::test_index_bytes_flag_exact_output \n[gw5] [ 8%] PASSED tests/test_harvest.py::test_index_debug_output \ntests/test_harvest.py::test_ls_all_flag \n[gw0] [ 8%] PASSED tests/test_cgi.py::test_cgi_index_with_specific_path \ntests/test_cgi.py::test_cgi_custom_css_url \n[gw9] [ 9%] PASSED tests/test_index.py::test_index_progress_flag_shows_meter \n[gw8] [ 9%] PASSED tests/test_index.py::test_index_exclude_pattern \ntests/test_index.py::test_index_symlinks_counted_as_zero \ntests/test_index.py::test_index_no_path_argument_error \n[gw7] [ 10%] PASSED tests/test_index.py::test_index_bytes_flag_exact_output \ntests/test_index.py::test_index_reindex_updates_database \n[gw2] [ 10%] PASSED tests/test_cgi.py::test_cgi_tooltip_option \n[gw9] [ 10%] PASSED tests/test_index.py::test_index_no_path_argument_error \ntests/test_cgi.py::test_cgi_multiple_query_params \ntests/test_index.py::test_index_uncompressed_flag_creates_larger_db \n[gw3] [ 11%] PASSED tests/test_harvest.py::test_regular_tree_indexing \ntests/test_harvest.py::test_hard_links_detection \n[gw6] [ 11%] PASSED tests/test_harvest.py::test_multiple_index_runs \n[gw4] [ 12%] PASSED tests/test_harvest.py::test_database_backend_compatibility \ntests/test_harvest.py::test_index_without_check_hard_links \ntests/test_index.py::test_index_single_directory_basic \n[gw8] [ 12%] PASSED tests/test_index.py::test_index_symlinks_counted_as_zero \ntests/test_index.py::test_index_hard_links_default_counts_each \n[gw5] [ 13%] PASSED tests/test_harvest.py::test_ls_all_flag \ntests/test_harvest.py::test_ls_recursive_flag \n[gw2] [ 13%] PASSED tests/test_cgi.py::test_cgi_multiple_query_params \ntests/test_harvest.py::test_full_integration \n[gw9] [ 13%] PASSED tests/test_index.py::test_index_uncompressed_flag_creates_larger_db \ntests/test_index.py::test_index_very_long_filename \n[gw7] [ 14%] PASSED tests/test_index.py::test_index_reindex_updates_database \n[gw4] [ 14%] PASSED tests/test_harvest.py::test_index_without_check_hard_links \ntests/test_index.py::test_index_one_file_system_flag_prevents_crossing \ntests/test_harvest.py::test_ls_nonexistent_path \n[gw3] [ 15%] PASSED tests/test_harvest.py::test_hard_links_detection \ntests/test_harvest.py::test_sparse_file_handling \n[gw6] [ 15%] PASSED tests/test_index.py::test_index_single_directory_basic \ntests/test_index.py::test_index_topn_stores_largest_files \n[gw8] [ 16%] PASSED tests/test_index.py::test_index_hard_links_default_counts_each \ntests/test_index.py::test_index_fs_exclude_option_accepts_value \n[gw7] [ 16%] PASSED tests/test_index.py::test_index_one_file_system_flag_prevents_crossing \ntests/test_index.py::test_index_custom_database_path \n[gw5] [ 16%] PASSED tests/test_harvest.py::test_ls_recursive_flag \ntests/test_harvest.py::test_bytes_flag_format \n[gw9] [ 17%] PASSED tests/test_index.py::test_index_very_long_filename \ntests/test_index.py::test_index_topn_exceeds_max_limit \n[gw8] [ 17%] PASSED tests/test_index.py::test_index_fs_exclude_option_accepts_value \ntests/test_index.py::test_index_fs_include_option_accepts_value \n[gw4] [ 18%] PASSED tests/test_harvest.py::test_ls_nonexistent_path \ntests/test_index.py::test_index_with_all_verbose_flags \n[gw3] [ 18%] PASSED tests/test_harvest.py::test_sparse_file_handling \ntests/test_harvest.py::test_special_character_filenames \n[gw6] [ 19%] PASSED tests/test_index.py::test_index_topn_stores_largest_files \ntests/test_index.py::test_index_hide_file_names_privacy_mode \n[gw2] [ 19%] PASSED tests/test_harvest.py::test_full_integration \ntests/test_index.py::test_index_multiple_flags_combination \n[gw5] [ 20%] PASSED tests/test_harvest.py::test_bytes_flag_format \ntests/test_info_histogram_topn.py::test_info_apparent_vs_actual_size \n[gw8] [ 20%] PASSED tests/test_index.py::test_index_fs_include_option_accepts_value \ntests/test_index.py::test_index_uid_option_accepts_value \n[gw4] [ 20%] PASSED tests/test_index.py::test_index_with_all_verbose_flags \ntests/test_index.py::test_index_quiet_mode_suppresses_warnings \n[gw7] [ 21%] PASSED tests/test_index.py::test_index_custom_database_path \ntests/test_index.py::test_index_deep_directory_nesting \n[gw4] [ 21%] PASSED tests/test_index.py::test_index_quiet_mode_suppresses_warnings \ntests/test_index.py::test_index_bytes_flag_with_verbose \n[gw6] [ 22%] PASSED tests/test_index.py::test_index_hide_file_names_privacy_mode \n[gw7] [ 22%] PASSED tests/test_index.py::test_index_deep_directory_nesting \n[gw3] [ 23%] PASSED tests/test_harvest.py::test_special_character_filenames \ntests/test_index.py::test_index_unicode_filenames \ntests/test_info_histogram_topn.py::test_info_multiple_indexed_paths \ntests/test_index.py::test_index_force_flag_overwrites_corrupted_db \n[gw2] [ 23%] PASSED tests/test_index.py::test_index_multiple_flags_combination \ntests/test_index.py::test_index_fs_exclude_multiple_types \n[gw8] [ 23%] PASSED tests/test_index.py::test_index_uid_option_accepts_value \ntests/test_index.py::test_index_username_option_accepts_value \n[gw1] [ 24%] RERUN tests/test_cgi.py::test_cgi_nonexistent_path \ntests/test_cgi.py::test_cgi_nonexistent_path \n[gw4] [ 24%] PASSED tests/test_index.py::test_index_bytes_flag_with_verbose \ntests/test_info_histogram_topn.py::test_info_nonexistent_database \n[gw5] [ 25%] PASSED tests/test_info_histogram_topn.py::test_info_apparent_vs_actual_size \ntests/test_info_histogram_topn.py::test_info_histogram_embedded \n[gw2] [ 25%] PASSED tests/test_index.py::test_index_fs_exclude_multiple_types \ntests/test_index.py::test_index_fs_include_single_type_matching \n[gw4] [ 26%] PASSED tests/test_info_histogram_topn.py::test_info_nonexistent_database \ntests/test_info_histogram_topn.py::test_info_basic_single_index \n[gw7] [ 26%] PASSED tests/test_index.py::test_index_unicode_filenames \ntests/test_index.py::test_index_special_characters_in_paths \n[gw3] [ 26%] PASSED tests/test_info_histogram_topn.py::test_info_multiple_indexed_paths \ntests/test_info_histogram_topn.py::test_histogram_empty_buckets_not_shown_in_info \n[gw8] [ 27%] PASSED tests/test_index.py::test_index_username_option_accepts_value \ntests/test_index.py::test_index_progress_flag_displays_animated_meter \n[gw2] [ 27%] PASSED tests/test_index.py::test_index_fs_include_single_type_matching \ntests/test_index.py::test_index_unreadable_directory_continues_with_warning \n[gw5] [ 28%] PASSED tests/test_info_histogram_topn.py::test_info_histogram_embedded \ntests/test_info_histogram_topn.py::test_histogram_basic_distribution \n[gw7] [ 28%] PASSED tests/test_index.py::test_index_special_characters_in_paths \ntests/test_info_histogram_topn.py::test_info_with_combined_flags \n[gw8] [ 29%] PASSED tests/test_index.py::test_index_progress_flag_displays_animated_meter \ntests/test_index.py::test_index_verbose_output_shows_filesystem_detection \n[gw4] [ 29%] PASSED tests/test_info_histogram_topn.py::test_info_basic_single_index \ntests/test_info_histogram_topn.py::test_info_bytes_flag \n[gw3] [ 30%] PASSED tests/test_info_histogram_topn.py::test_histogram_empty_buckets_not_shown_in_info \ntests/test_info_histogram_topn.py::test_histogram_all_buckets_always_shown \n[gw8] [ 30%] PASSED tests/test_index.py::test_index_verbose_output_shows_filesystem_detection \ntests/test_index.py::test_index_topn_min_size_filter \n[gw2] [ 30%] PASSED tests/test_index.py::test_index_unreadable_directory_continues_with_warning \ntests/test_index.py::test_index_empty_path_argument_list \n[gw5] [ 31%] PASSED tests/test_info_histogram_topn.py::test_histogram_basic_distribution \ntests/test_info_histogram_topn.py::test_topn_basic_ordering \n[gw7] [ 31%] PASSED tests/test_info_histogram_topn.py::test_info_with_combined_flags \ntests/test_info_histogram_topn.py::test_histogram_with_many_different_sizes \n[gw2] [ 32%] PASSED tests/test_index.py::test_index_empty_path_argument_list \n[gw8] [ 32%] PASSED tests/test_index.py::test_index_topn_min_size_filter \ntests/test_index.py::test_index_database_in_nonexistent_directory \ntests/test_info_histogram_topn.py::test_topn_nonexistent_database \n[gw3] [ 33%] PASSED tests/test_info_histogram_topn.py::test_histogram_all_buckets_always_shown \ntests/test_info_histogram_topn.py::test_topn_respects_count_limit \n[gw4] [ 33%] PASSED tests/test_info_histogram_topn.py::test_info_bytes_flag \ntests/test_info_histogram_topn.py::test_histogram_power_of_2_boundaries \n[gw8] [ 33%] PASSED tests/test_info_histogram_topn.py::test_topn_nonexistent_database \ntests/test_info_histogram_topn.py::test_topn_with_actual_files_indexed \n[gw2] [ 34%] PASSED tests/test_index.py::test_index_database_in_nonexistent_directory \ntests/test_info_histogram_topn.py::test_topn_invalid_database_file \n[gw0] [ 34%] RERUN tests/test_cgi.py::test_cgi_custom_css_url \ntests/test_cgi.py::test_cgi_custom_css_url \n[gw5] [ 35%] PASSED tests/test_info_histogram_topn.py::test_topn_basic_ordering \ntests/test_info_histogram_topn.py::test_topn_with_bytes_flag \n[gw7] [ 35%] PASSED tests/test_info_histogram_topn.py::test_histogram_with_many_different_sizes \ntests/test_info_histogram_topn.py::test_topn_size_format_consistency \n[gw2] [ 36%] PASSED tests/test_info_histogram_topn.py::test_topn_invalid_database_file \ntests/test_info_histogram_topn.py::test_histogram_bytes_flag_currently_ignored \n[gw3] [ 36%] PASSED tests/test_info_histogram_topn.py::test_topn_respects_count_limit \ntests/test_info_histogram_topn.py::test_topn_minimum_size_threshold \n[gw4] [ 36%] PASSED tests/test_info_histogram_topn.py::test_histogram_power_of_2_boundaries \n[gw8] [ 37%] PASSED tests/test_info_histogram_topn.py::test_topn_with_actual_files_indexed \ntests/test_info_histogram_topn.py::test_topn_descending_order_verification \ntests/test_info_histogram_topn.py::test_topn_bytes_flag_shows_exact_sizes \n[gw7] [ 37%] PASSED tests/test_info_histogram_topn.py::test_topn_size_format_consistency \ntests/test_info_histogram_topn.py::test_info_empty_directory \n[gw5] [ 38%] PASSED tests/test_info_histogram_topn.py::test_topn_with_bytes_flag \ntests/test_info_histogram_topn.py::test_topn_no_topn_data_in_database \n[gw3] [ 38%] PASSED tests/test_info_histogram_topn.py::test_topn_minimum_size_threshold \ntests/test_info_histogram_topn.py::test_topn_zero_size_files_filtered \n[gw2] [ 39%] PASSED tests/test_info_histogram_topn.py::test_histogram_bytes_flag_currently_ignored \ntests/test_info_histogram_topn.py::test_histogram_empty_database \n[gw9] [ 39%] RERUN tests/test_index.py::test_index_topn_exceeds_max_limit \ntests/test_index.py::test_index_topn_exceeds_max_limit \n[gw4] [ 40%] PASSED tests/test_info_histogram_topn.py::test_topn_descending_order_verification \ntests/test_info_histogram_topn.py::test_info_apparent_vs_actual_with_sparse_file \n[gw7] [ 40%] PASSED tests/test_info_histogram_topn.py::test_info_empty_directory \ntests/test_ls.py::test_bytes_flag_exact_byte_counts \n[gw8] [ 40%] PASSED tests/test_info_histogram_topn.py::test_topn_bytes_flag_shows_exact_sizes \ntests/test_info_histogram_topn.py::test_histogram_invalid_database_file \n[gw5] [ 41%] PASSED tests/test_info_histogram_topn.py::test_topn_no_topn_data_in_database \ntests/test_ls.py::test_recursive_ascii_mode \n[gw8] [ 41%] PASSED tests/test_info_histogram_topn.py::test_histogram_invalid_database_file \n[gw3] [ 42%] PASSED tests/test_info_histogram_topn.py::test_topn_zero_size_files_filtered \n[gw2] [ 42%] PASSED tests/test_info_histogram_topn.py::test_histogram_empty_database \ntests/test_info_histogram_topn.py::test_histogram_multiple_file_sizes_distribution \ntests/test_ls.py::test_count_shows_file_counts_not_sizes \ntests/test_info_histogram_topn.py::test_topn_empty_database \n[gw7] [ 43%] PASSED tests/test_ls.py::test_bytes_flag_exact_byte_counts \ntests/test_ls.py::test_classify_flag_appends_indicators \n[gw5] [ 43%] PASSED tests/test_ls.py::test_recursive_ascii_mode \ntests/test_ls.py::test_recursive_full_path_mode \n[gw6] [ 43%] RERUN tests/test_index.py::test_index_force_flag_overwrites_corrupted_db \ntests/test_index.py::test_index_force_flag_overwrites_corrupted_db \n[gw1] [ 43%] RERUN tests/test_cgi.py::test_cgi_nonexistent_path \ntests/test_cgi.py::test_cgi_nonexistent_path \n[gw3] [ 44%] PASSED tests/test_info_histogram_topn.py::test_histogram_multiple_file_sizes_distribution \n[gw2] [ 44%] PASSED tests/test_info_histogram_topn.py::test_topn_empty_database \n[gw8] [ 45%] PASSED tests/test_ls.py::test_count_shows_file_counts_not_sizes \ntests/test_info_histogram_topn.py::test_topn_limit_respected \ntests/test_ls.py::test_apparent_size_vs_actual_size \ntests/test_info_histogram_topn.py::test_histogram_apparent_flag \n[gw4] [ 45%] PASSED tests/test_info_histogram_topn.py::test_info_apparent_vs_actual_with_sparse_file \n[gw7] [ 46%] PASSED tests/test_ls.py::test_classify_flag_appends_indicators \ntests/test_info_histogram_topn.py::test_histogram_nonexistent_database \ntests/test_ls.py::test_name_sort_alphabetical_order \n[gw5] [ 46%] PASSED tests/test_ls.py::test_recursive_full_path_mode \ntests/test_ls.py::test_directory_flag_lists_dir_itself \n[gw4] [ 46%] PASSED tests/test_info_histogram_topn.py::test_histogram_nonexistent_database \ntests/test_ls.py::test_special_chars_in_filenames \n[gw1] [ 46%] FAILED tests/test_cgi.py::test_cgi_nonexistent_path \ntests/test_cgi.py::test_cgi_tooltip_command \n[gw3] [ 47%] PASSED tests/test_info_histogram_topn.py::test_topn_limit_respected \n[gw2] [ 47%] PASSED tests/test_info_histogram_topn.py::test_histogram_apparent_flag \ntests/test_ls.py::test_basic_listing_default_sort_by_size \ntests/test_ls.py::test_path_not_found_error \n[gw8] [ 48%] PASSED tests/test_ls.py::test_apparent_size_vs_actual_size \ntests/test_ls.py::test_levels_limits_recursion_depth \n[gw7] [ 48%] PASSED tests/test_ls.py::test_name_sort_alphabetical_order \ntests/test_ls.py::test_recursive_with_tree_structure \n[gw5] [ 49%] PASSED tests/test_ls.py::test_directory_flag_lists_dir_itself \ntests/test_ls.py::test_dirs_only_skips_files \n[gw4] [ 49%] PASSED tests/test_ls.py::test_special_chars_in_filenames \ntests/test_ls.py::test_apparent_and_bytes_combined \n[gw2] [ 50%] PASSED tests/test_ls.py::test_path_not_found_error \n[gw3] [ 50%] PASSED tests/test_ls.py::test_basic_listing_default_sort_by_size \ntests/test_ls.py::test_list_subdirectory_by_path \ntests/test_ls.py::test_recursive_with_classify_and_graph \n[gw7] [ 50%] PASSED tests/test_ls.py::test_recursive_with_tree_structure \ntests/test_ls.py::test_count_recursive \n[gw5] [ 51%] PASSED tests/test_ls.py::test_dirs_only_skips_files \n[gw8] [ 51%] PASSED tests/test_ls.py::test_levels_limits_recursion_depth \ntests/test_ls.py::test_directory_flag_shows_dir_itself \ntests/test_ls.py::test_graph_shows_relative_size_bars \n[gw2] [ 52%] PASSED tests/test_ls.py::test_list_subdirectory_by_path \ntests/test_ls.py::test_multiple_paths_in_one_command \n[gw4] [ 52%] PASSED tests/test_ls.py::test_apparent_and_bytes_combined \n[gw3] [ 53%] PASSED tests/test_ls.py::test_recursive_with_classify_and_graph \ntests/test_ls.py::test_database_file_not_found_error \ntests/test_ls.py::test_empty_directory_listing \n[gw0] [ 53%] RERUN tests/test_cgi.py::test_cgi_custom_css_url \ntests/test_cgi.py::test_cgi_custom_css_url \n[gw3] [ 53%] PASSED tests/test_ls.py::test_database_file_not_found_error \ntests/test_ls.py::test_deep_directory_tree_recursion \n[gw7] [ 53%] PASSED tests/test_ls.py::test_count_recursive \n[gw8] [ 54%] PASSED tests/test_ls.py::test_graph_shows_relative_size_bars \ntests/test_ls.py::test_fullpath_with_recursive \ntests/test_ls.py::test_color_output_on_tty \n[gw5] [ 54%] PASSED tests/test_ls.py::test_directory_flag_shows_dir_itself \ntests/test_ls.py::test_directory_flag_with_classify \n[gw4] [ 55%] PASSED tests/test_ls.py::test_empty_directory_listing \n[gw2] [ 55%] PASSED tests/test_ls.py::test_multiple_paths_in_one_command \ntests/test_ls.py::test_graph_recursive_ascii_width_calculation \ntests/test_ls.py::test_utf8_filenames_displayed_correctly \n[gw0] [ 55%] FAILED tests/test_cgi.py::test_cgi_custom_css_url \ntests/test_cgi.py::test_cgi_nonexistent_database \n[gw9] [ 55%] RERUN tests/test_index.py::test_index_topn_exceeds_max_limit \ntests/test_index.py::test_index_topn_exceeds_max_limit \n[gw8] [ 56%] PASSED tests/test_ls.py::test_fullpath_with_recursive \ntests/test_ls.py::test_count_with_bytes_flag \n[gw3] [ 56%] PASSED tests/test_ls.py::test_deep_directory_tree_recursion \ntests/test_ls.py::test_apparent_size_recursive \n[gw5] [ 56%] PASSED tests/test_ls.py::test_directory_flag_with_classify \ntests/test_ls.py::test_graph_respects_terminal_width \n[gw7] [ 57%] PASSED tests/test_ls.py::test_color_output_on_tty \ntests/test_ls.py::test_dirs_only_flag_filters_files \n[gw2] [ 57%] PASSED tests/test_ls.py::test_utf8_filenames_displayed_correctly \ntests/test_ls.py::test_classify_with_name_sort \n[gw4] [ 58%] PASSED tests/test_ls.py::test_graph_recursive_ascii_width_calculation \ntests/test_ls.py::test_recursive_dirs_only_filter \n[gw9] [ 58%] FAILED tests/test_index.py::test_index_topn_exceeds_max_limit \ntests/test_index.py::test_index_buckets_exceeds_max_limit \n[gw8] [ 58%] PASSED tests/test_ls.py::test_count_with_bytes_flag \ntests/test_ls.py::test_color_with_graph_recursive_ascii \n[gw3] [ 59%] PASSED tests/test_ls.py::test_apparent_size_recursive \ntests/test_ls.py::test_recursive_levels_zero_shows_top_only \n[gw7] [ 59%] PASSED tests/test_ls.py::test_dirs_only_flag_filters_files \n[gw2] [ 60%] PASSED tests/test_ls.py::test_classify_with_name_sort \ntests/test_ls.py::test_color_threshold_yellow_and_red \ntests/test_ls.py::test_narrow_terminal_graph_bars \n[gw9] [ 60%] PASSED tests/test_index.py::test_index_buckets_exceeds_max_limit \ntests/test_index.py::test_index_statvfs_failure_nonexistent_path \n[gw5] [ 60%] PASSED tests/test_ls.py::test_graph_respects_terminal_width \ntests/test_ls.py::test_multiple_paths_first_succeeds_second_fails \n[gw9] [ 61%] PASSED tests/test_index.py::test_index_statvfs_failure_nonexistent_path \ntests/test_index.py::test_index_topn_exceeds_max_shows_warning \n[gw6] [ 61%] RERUN tests/test_index.py::test_index_force_flag_overwrites_corrupted_db \ntests/test_index.py::test_index_force_flag_overwrites_corrupted_db \n[gw3] [ 61%] PASSED tests/test_ls.py::test_recursive_levels_zero_shows_top_only \ntests/test_ls.py::test_full_path_without_recursive_no_effect \n[gw2] [ 62%] PASSED tests/test_ls.py::test_narrow_terminal_graph_bars \ntests/test_ls.py::test_classify_indicator_for_files \n[gw7] [ 62%] PASSED tests/test_ls.py::test_color_threshold_yellow_and_red \ntests/test_ls.py::test_graph_with_all_same_size \n[gw6] [ 62%] FAILED tests/test_index.py::test_index_force_flag_overwrites_corrupted_db \ntests/test_index.py::test_index_multiple_exclude_patterns \n[gw5] [ 63%] PASSED tests/test_ls.py::test_multiple_paths_first_succeeds_second_fails \ntests/test_ls.py::test_bytes_with_count_shows_exact_integers \n[gw1] [ 63%] RERUN tests/test_cgi.py::test_cgi_tooltip_command \ntests/test_cgi.py::test_cgi_tooltip_command \n[gw7] [ 63%] PASSED tests/test_ls.py::test_graph_with_all_same_size \n[gw2] [ 64%] PASSED tests/test_ls.py::test_classify_indicator_for_files \ntests/test_output.py::test_xml_basic_output \ntests/test_output.py::test_json_basic_output \n[gw6] [ 64%] PASSED tests/test_index.py::test_index_multiple_exclude_patterns \ntests/test_index.py::test_index_sparse_files_apparent_vs_actual \n[gw3] [ 65%] PASSED tests/test_ls.py::test_full_path_without_recursive_no_effect \ntests/test_ls.py::test_apparent_vs_actual_size_difference \n[gw5] [ 65%] PASSED tests/test_ls.py::test_bytes_with_count_shows_exact_integers \ntests/test_output.py::test_xml_exclude_files \n[gw6] [ 66%] PASSED tests/test_index.py::test_index_sparse_files_apparent_vs_actual \ntests/test_index.py::test_index_readonly_directory_handles_gracefully \n[gw7] [ 66%] PASSED tests/test_output.py::test_xml_basic_output \ntests/test_output.py::test_json_exclude_files \n[gw6] [ 66%] PASSED tests/test_index.py::test_index_readonly_directory_handles_gracefully \ntests/test_output.py::test_json_nonexistent_path \n[gw3] [ 67%] PASSED tests/test_ls.py::test_apparent_vs_actual_size_difference \ntests/test_output.py::test_json_apparent_size \n[gw2] [ 67%] PASSED tests/test_output.py::test_json_basic_output \ntests/test_output.py::test_xml_min_size_filtering \n[gw5] [ 68%] PASSED tests/test_output.py::test_xml_exclude_files \ntests/test_output.py::test_json_min_size_filtering \n[gw0] [ 68%] RERUN tests/test_cgi.py::test_cgi_nonexistent_database \ntests/test_cgi.py::test_cgi_nonexistent_database \n[gw7] [ 69%] PASSED tests/test_output.py::test_json_exclude_files \ntests/test_output.py::test_xml_nonexistent_path \n[gw6] [ 69%] PASSED tests/test_output.py::test_json_nonexistent_path \ntests/test_output.py::test_json_nonexistent_database \n[gw6] [ 70%] PASSED tests/test_output.py::test_json_nonexistent_database \ntests/test_output.py::test_xml_combined_flags_exclude_and_minsize \n[gw3] [ 70%] PASSED tests/test_output.py::test_json_apparent_size \n[gw2] [ 70%] PASSED tests/test_output.py::test_xml_min_size_filtering \ntests/test_output.py::test_xml_nonexistent_database \ntests/test_output.py::test_xml_special_character_escaping \n[gw7] [ 71%] PASSED tests/test_output.py::test_xml_nonexistent_path \ntests/test_output.py::test_json_combined_flags_exclude_and_minsize \n[gw3] [ 71%] PASSED tests/test_output.py::test_xml_nonexistent_database \ntests/test_output.py::test_xml_deeply_nested_structure \n[gw5] [ 72%] PASSED tests/test_output.py::test_json_min_size_filtering \ntests/test_output.py::test_json_and_xml_size_consistency \n[gw6] [ 72%] PASSED tests/test_output.py::test_xml_combined_flags_exclude_and_minsize \ntests/test_output.py::test_json_deeply_nested_structure \n[gw4] [ 73%] RERUN tests/test_ls.py::test_recursive_dirs_only_filter \ntests/test_ls.py::test_recursive_dirs_only_filter \n[gw2] [ 73%] PASSED tests/test_output.py::test_xml_special_character_escaping \ntests/test_output.py::test_json_large_directory \n[gw7] [ 73%] PASSED tests/test_output.py::test_json_combined_flags_exclude_and_minsize \ntests/test_output.py::test_xml_large_directory \n[gw3] [ 74%] PASSED tests/test_output.py::test_xml_deeply_nested_structure \ntests/test_output.py::test_json_empty_directory \n[gw6] [ 74%] PASSED tests/test_output.py::test_json_deeply_nested_structure \ntests/test_output.py::test_xml_control_characters_escaping \n[gw5] [ 75%] PASSED tests/test_output.py::test_json_and_xml_size_consistency \ntests/test_output.py::test_json_special_characters_in_filenames \n[gw9] [ 75%] RERUN tests/test_index.py::test_index_topn_exceeds_max_shows_warning \ntests/test_index.py::test_index_topn_exceeds_max_shows_warning \n[gw8] [ 76%] RERUN tests/test_ls.py::test_color_with_graph_recursive_ascii \ntests/test_ls.py::test_color_with_graph_recursive_ascii \n[gw7] [ 76%] PASSED tests/test_output.py::test_xml_large_directory \n[gw2] [ 76%] PASSED tests/test_output.py::test_json_large_directory \ntests/test_output.py::test_json_default_path \ntests/test_output.py::test_xml_default_path \n[gw6] [ 77%] PASSED tests/test_output.py::test_xml_control_characters_escaping \ntests/test_output.py::test_json_min_size_with_apparent_flag \n[gw3] [ 77%] PASSED tests/test_output.py::test_json_empty_directory \n[gw5] [ 78%] PASSED tests/test_output.py::test_json_special_characters_in_filenames \ntests/test_output.py::test_json_min_size_filtering_actual \ntests/test_output.py::test_json_exclude_files_flag \n[gw7] [ 78%] PASSED tests/test_output.py::test_xml_default_path \n[gw2] [ 79%] PASSED tests/test_output.py::test_json_default_path \ntests/test_output.py::test_json_missing_database_error \ntests/test_output.py::test_json_deep_recursive_hierarchy \n[gw1] [ 79%] RERUN tests/test_cgi.py::test_cgi_tooltip_command \ntests/test_cgi.py::test_cgi_tooltip_command \n[gw7] [ 79%] PASSED tests/test_output.py::test_json_missing_database_error \ntests/test_output.py::test_xml_exclude_files_flag \n[gw6] [ 80%] PASSED tests/test_output.py::test_json_min_size_with_apparent_flag \ntests/test_output.py::test_json_missing_path_in_database \n[gw5] [ 80%] PASSED tests/test_output.py::test_json_exclude_files_flag \ntests/test_output.py::test_xml_min_size_with_apparent_flag \n[gw2] [ 80%] PASSED tests/test_output.py::test_json_deep_recursive_hierarchy \n[gw3] [ 81%] PASSED tests/test_output.py::test_json_min_size_filtering_actual \ntests/test_output.py::test_xml_deep_recursive_hierarchy \ntests/test_output.py::test_xml_min_size_filtering_actual \n[gw7] [ 81%] PASSED tests/test_output.py::test_xml_exclude_files_flag \ntests/test_output.py::test_xml_missing_database_error \n[gw1] [ 81%] FAILED tests/test_cgi.py::test_cgi_tooltip_command \ntests/test_cgi.py::test_cgi_bytes_option \n[gw5] [ 82%] PASSED tests/test_output.py::test_xml_min_size_with_apparent_flag \n[gw6] [ 82%] PASSED tests/test_output.py::test_json_missing_path_in_database \ntests/test_output.py::test_json_combined_flags_min_size_apparent_exclude \ntests/test_output.py::test_xml_missing_path_in_database \n[gw7] [ 83%] PASSED tests/test_output.py::test_xml_missing_database_error \ntests/test_output.py::test_json_single_file_no_subdirs \n[gw2] [ 83%] PASSED tests/test_output.py::test_xml_deep_recursive_hierarchy \n[gw3] [ 83%] PASSED tests/test_output.py::test_xml_min_size_filtering_actual \ntests/test_output.py::test_json_empty_directory_handling \ntests/test_output.py::test_xml_combined_flags_min_size_apparent_exclude \n[gw0] [ 83%] RERUN tests/test_cgi.py::test_cgi_nonexistent_database \ntests/test_cgi.py::test_cgi_nonexistent_database \n[gw6] [ 84%] PASSED tests/test_output.py::test_xml_missing_path_in_database \n[gw5] [ 84%] PASSED tests/test_output.py::test_json_combined_flags_min_size_apparent_exclude \n[gw1] [ 85%] PASSED tests/test_cgi.py::test_cgi_bytes_option \ntests/test_output.py::test_json_very_large_directory_tree \ntests/test_cgi.py::test_cgi_list_option \ntests/test_output.py::test_xml_single_file_no_subdirs \n[gw0] [ 85%] FAILED tests/test_cgi.py::test_cgi_nonexistent_database \ntests/test_ls.py::test_path_not_found_error_message \n[gw7] [ 85%] PASSED tests/test_output.py::test_json_single_file_no_subdirs \ntests/test_output.py::test_xml_very_large_directory_tree \n[gw3] [ 86%] PASSED tests/test_output.py::test_xml_combined_flags_min_size_apparent_exclude \ntests/test_output.py::test_xml_subdirectory_query \n[gw2] [ 86%] PASSED tests/test_output.py::test_json_empty_directory_handling \ntests/test_output.py::test_json_subdirectory_query \n[gw5] [ 86%] PASSED tests/test_output.py::test_xml_single_file_no_subdirs \n[gw6] [ 87%] PASSED tests/test_output.py::test_json_very_large_directory_tree \ntests/test_seed.py::test_help_command \ntests/test_seed.py::test_executable_exists \n[gw6] [ 87%] PASSED tests/test_seed.py::test_executable_exists \n[gw0] [ 88%] PASSED tests/test_ls.py::test_path_not_found_error_message \ntests/test_ls.py::test_default_path_is_current_directory \ntests/test_ui.py::test_ui_backspace_navigation \n[gw7] [ 88%] PASSED tests/test_output.py::test_xml_very_large_directory_tree \ntests/test_seed.py::test_version_command \n[gw5] [ 89%] PASSED tests/test_seed.py::test_help_command \ntests/test_ui.py::test_ui_navigation_down_and_enter \n[gw3] [ 89%] PASSED tests/test_output.py::test_xml_subdirectory_query \ntests/test_seed.py::test_invalid_subcommand_shows_help \n[gw2] [ 90%] PASSED tests/test_output.py::test_json_subdirectory_query \ntests/test_ui.py::test_ui_basic_launch_and_display \n[gw4] [ 90%] RERUN tests/test_ls.py::test_recursive_dirs_only_filter \ntests/test_ls.py::test_recursive_dirs_only_filter \n[gw0] [ 90%] PASSED tests/test_ls.py::test_default_path_is_current_directory \ntests/test_ui.py::test_ui_toggle_bytes \n[gw3] [ 90%] PASSED tests/test_seed.py::test_invalid_subcommand_shows_help \ntests/test_ui.py::test_ui_option_apparent \n[gw9] [ 90%] RERUN tests/test_index.py::test_index_topn_exceeds_max_shows_warning \ntests/test_index.py::test_index_topn_exceeds_max_shows_warning \n[gw4] [ 90%] FAILED tests/test_ls.py::test_recursive_dirs_only_filter \ntests/test_ls.py::test_recursive_name_sort_ordering \n[gw8] [ 90%] RERUN tests/test_ls.py::test_color_with_graph_recursive_ascii \ntests/test_ls.py::test_color_with_graph_recursive_ascii \n[gw9] [ 90%] FAILED tests/test_index.py::test_index_topn_exceeds_max_shows_warning \ntests/test_index.py::test_index_buckets_exceeds_max_shows_warning \n[gw4] [ 91%] PASSED tests/test_ls.py::test_recursive_name_sort_ordering \ntests/test_ui.py::test_ui_keyboard_navigation_home_end \n[gw8] [ 91%] FAILED tests/test_ls.py::test_color_with_graph_recursive_ascii \ntests/test_ls.py::test_recursive_with_empty_subdirectories \n[gw8] [ 91%] PASSED tests/test_ls.py::test_recursive_with_empty_subdirectories \ntests/test_ls.py::test_count_mode_with_multiple_files_per_dir \n[gw8] [ 92%] PASSED tests/test_ls.py::test_count_mode_with_multiple_files_per_dir \n[gw1] [ 92%] RERUN tests/test_cgi.py::test_cgi_list_option \ntests/test_cgi.py::test_cgi_list_option \n[gw7] [ 93%] RERUN tests/test_seed.py::test_version_command \ntests/test_seed.py::test_version_command \n[gw9] [ 93%] RERUN tests/test_index.py::test_index_buckets_exceeds_max_shows_warning \ntests/test_index.py::test_index_buckets_exceeds_max_shows_warning \n[gw1] [ 93%] RERUN tests/test_cgi.py::test_cgi_list_option \ntests/test_cgi.py::test_cgi_list_option \n[gw7] [ 93%] RERUN tests/test_seed.py::test_version_command \ntests/test_seed.py::test_version_command \n[gw7] [ 93%] FAILED tests/test_seed.py::test_version_command \ntests/test_ui.py::test_ui_toggle_count \n[gw1] [ 93%] FAILED tests/test_cgi.py::test_cgi_list_option \ntests/test_cgi.py::test_cgi_apparent_option \n[gw1] [ 93%] PASSED tests/test_cgi.py::test_cgi_apparent_option \n[gw9] [ 93%] RERUN tests/test_index.py::test_index_buckets_exceeds_max_shows_warning \ntests/test_index.py::test_index_buckets_exceeds_max_shows_warning \n[gw9] [ 93%] FAILED tests/test_index.py::test_index_buckets_exceeds_max_shows_warning \ntests/test_ui.py::test_ui_keyboard_navigation_up_down \n[gw2] [ 94%] RERUN tests/test_ui.py::test_ui_basic_launch_and_display \ntests/test_ui.py::test_ui_basic_launch_and_display \n[gw3] [ 94%] RERUN tests/test_ui.py::test_ui_option_apparent \ntests/test_ui.py::test_ui_option_apparent \n[gw4] [ 95%] PASSED tests/test_ui.py::test_ui_keyboard_navigation_home_end \ntests/test_ui.py::test_ui_name_sort_toggle \n[gw0] [ 95%] RERUN tests/test_ui.py::test_ui_toggle_bytes \ntests/test_ui.py::test_ui_toggle_bytes \n[gw6] [ 96%] RERUN tests/test_ui.py::test_ui_backspace_navigation \ntests/test_ui.py::test_ui_backspace_navigation \n[gw5] [ 96%] RERUN tests/test_ui.py::test_ui_navigation_down_and_enter \ntests/test_ui.py::test_ui_navigation_down_and_enter \n[gw3] [ 96%] RERUN tests/test_ui.py::test_ui_option_apparent \ntests/test_ui.py::test_ui_option_apparent \n[gw2] [ 96%] RERUN tests/test_ui.py::test_ui_basic_launch_and_display \ntests/test_ui.py::test_ui_basic_launch_and_display \n[gw9] [ 96%] PASSED tests/test_ui.py::test_ui_keyboard_navigation_up_down \n[gw7] [ 97%] RERUN tests/test_ui.py::test_ui_toggle_count \ntests/test_ui.py::test_ui_toggle_count \n[gw4] [ 97%] PASSED tests/test_ui.py::test_ui_name_sort_toggle \n[gw3] [ 97%] FAILED tests/test_ui.py::test_ui_option_apparent \ntests/test_ui.py::test_ui_option_database \n[gw2] [ 97%] FAILED tests/test_ui.py::test_ui_basic_launch_and_display \ntests/test_ui.py::test_ui_option_bytes \n[gw0] [ 97%] RERUN tests/test_ui.py::test_ui_toggle_bytes \ntests/test_ui.py::test_ui_toggle_bytes \n[gw3] [ 98%] PASSED tests/test_ui.py::test_ui_option_database \n[gw2] [ 98%] PASSED tests/test_ui.py::test_ui_option_bytes \n[gw6] [ 98%] RERUN tests/test_ui.py::test_ui_backspace_navigation \ntests/test_ui.py::test_ui_backspace_navigation \n[gw5] [ 98%] RERUN tests/test_ui.py::test_ui_navigation_down_and_enter \ntests/test_ui.py::test_ui_navigation_down_and_enter \n[gw7] [ 98%] RERUN tests/test_ui.py::test_ui_toggle_count \ntests/test_ui.py::test_ui_toggle_count \n[gw0] [ 98%] FAILED tests/test_ui.py::test_ui_toggle_bytes \ntests/test_ui.py::test_ui_option_count \n[gw5] [ 98%] FAILED tests/test_ui.py::test_ui_navigation_down_and_enter \ntests/test_ui.py::test_ui_toggle_graph \n[gw6] [ 98%] FAILED tests/test_ui.py::test_ui_backspace_navigation \ntests/test_ui.py::test_ui_toggle_apparent_size \n[gw0] [ 99%] RERUN tests/test_ui.py::test_ui_option_count \ntests/test_ui.py::test_ui_option_count \n[gw7] [ 99%] FAILED tests/test_ui.py::test_ui_toggle_count \n[gw6] [ 99%] RERUN tests/test_ui.py::test_ui_toggle_apparent_size \ntests/test_ui.py::test_ui_toggle_apparent_size \n[gw0] [ 99%] RERUN tests/test_ui.py::test_ui_option_count \ntests/test_ui.py::test_ui_option_count \n[gw5] [100%] RERUN tests/test_ui.py::test_ui_toggle_graph \ntests/test_ui.py::test_ui_toggle_graph \n[gw0] [100%] FAILED tests/test_ui.py::test_ui_option_count \n[gw6] [100%] RERUN tests/test_ui.py::test_ui_toggle_apparent_size \ntests/test_ui.py::test_ui_toggle_apparent_size \n[gw6] [100%] FAILED tests/test_ui.py::test_ui_toggle_apparent_size \n[gw5] [100%] RERUN tests/test_ui.py::test_ui_toggle_graph \ntests/test_ui.py::test_ui_toggle_graph \n[gw5] [100%] FAILED tests/test_ui.py::test_ui_toggle_graph \n\n=================================== FAILURES ===================================\n__________________________ test_cgi_nonexistent_path ___________________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_cgi.py:191: in test_cgi_nonexistent_path\n assert result.returncode == 1\nE assert 0 == 1\nE + where 0 = CompletedProcess(args=['/workspace/executable', 'cgi', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_cgi_nonexistent_path2/test.db'], returncode=0, stdout='Content-Type: text/html\\n\\n\\n\\n \\n\\n\\n\\n\\n
\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
PathSizeFilesDirectoriesDateTime
/tmp/pytest-of-root/pytest-0/popen-gw1/test_cgi_nonexistent_path2/tree4.0K112026-10-0905:33:15
\\n
\\n
\\n\\n\\n', stderr='').returncode\n___________________________ test_cgi_custom_css_url ____________________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_cgi.py:145: in test_cgi_custom_css_url\n assert link.get(\"type\") == \"text/css\"\nE assert None == 'text/css'\nE + where None = get('type')\nE + where get = .get\n______________________ test_index_topn_exceeds_max_limit _______________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_index.py:850: in test_index_topn_exceeds_max_limit\n assert result.returncode == -6, f\"Expected crash with -6, got: {result.returncode}\"\nE AssertionError: Expected crash with -6, got: 0\nE assert 0 == -6\nE + where 0 = CompletedProcess(args=['/workspace/executable', 'index', '-v', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_li2/test.db', '-T', '2000', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_li2/tree'], returncode=0, stdout='', stderr='Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_li2/test.db\"\\nIndexed 1 files and 1 directories, (7B apparent, 4.0KB actual) in 0.00 secs.\\n').returncode\n________________ test_index_force_flag_overwrites_corrupted_db _________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_index.py:581: in test_index_force_flag_overwrites_corrupted_db\n assert result.returncode == 0, f\"Index with --force should succeed: {result.stderr}\"\nE AssertionError: Index with --force should succeed: Found big filesystem\nE Writing to database \"/tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db\"\nE Error opening: /tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db - Database corrupt and not usable\nE Database corrupt and not usable\nE \nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'index', '-v', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db', '-f', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/tree'], returncode=1, stdout='', stderr='Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db\"\\nError opening: /tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db - Database corrupt and not usable\\nDatabase corrupt and not usable\\n').returncode\n___________________________ test_cgi_tooltip_command ___________________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_cgi.py:224: in test_cgi_tooltip_command\n assert \"Content-Type: text/html\" in result.stdout\nE AssertionError: assert 'Content-Type: text/html' in 'Content-Type: text/plain\\n\\nbigfile\\n100.0K\\n'\nE + where 'Content-Type: text/plain\\n\\nbigfile\\n100.0K\\n' = CompletedProcess(args=['/workspace/executable', 'cgi', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_cgi_tooltip_command2/test.db'], returncode=0, stdout='Content-Type: text/plain\\n\\nbigfile\\n100.0K\\n', stderr='').stdout\n________________________ test_cgi_nonexistent_database _________________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_cgi.py:168: in test_cgi_nonexistent_database\n assert \"Content-Type: text/plain\" in result.stdout\nE AssertionError: assert 'Content-Type: text/plain' in ''\nE + where '' = CompletedProcess(args=['/workspace/executable', 'cgi', '-d', '/nonexistent/database.db'], returncode=1, stdout='', stderr='Error opening: /nonexistent/database.db - Database not found\\nDatabase not found\\n').stdout\n_______________________ test_recursive_dirs_only_filter ________________________\n[gw4] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_ls.py:776: in test_recursive_dirs_only_filter\n assert result.stdout == (RESOURCES / \"recursive_dirs_only.golden\").read_text()\nE AssertionError: assert '800.0K \u2570\u252c\u2500 a...00.0K \u251c\u2500 c\\n' == '800.0K \u2570\u252c\u2500 a...00.0K \u2570\u2500 c\\n'\nE \nE 800.0K \u2570\u252c\u2500 a\nE 600.0K \u251c\u2500 b\nE - 100.0K \u2570\u2500 c\nE ? ^\nE + 100.0K \u251c\u2500 c\nE ? ^\n__________________ test_index_topn_exceeds_max_shows_warning ___________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_index.py:906: in test_index_topn_exceeds_max_shows_warning\n assert \"Cannot store more than 1000 topN files\" in result.stderr, \\\nE AssertionError: Missing topN max warning in stderr\nE assert 'Cannot store more than 1000 topN files' in 'Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n'\nE + where 'Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n' = CompletedProcess(args=['/workspace/executable', 'index', '-v', '-T', '99999', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/test.db', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/tree'], returncode=0, stdout='', stderr='Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n').stderr\n____________________ test_color_with_graph_recursive_ascii _____________________\n[gw8] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_ls.py:734: in test_color_with_graph_recursive_ascii\n assert output == (RESOURCES / \"color_graph_recursive_ascii.golden\").read_text()\nE AssertionError: assert '\\x1b[31m800....+++\\x1b[0m]\\n' == '\\x1b[31m800....31m\\x1b[0m]\\n'\nE \nE - \u001b[31m800.0K\u001b[0m `+- a [\u001b[31m\u001b[0m]\nE - \u001b[31m800.0K\u001b[0m | `- f1.bin [\u001b[31m\u001b[0m]\nE - \u001b[31m600.0K\u001b[0m |- b [\u001b[31m\u001b[0m]\nE - \u001b[31m600.0K\u001b[0m | `- f2.bin [\u001b[31m\u001b[0m]\nE - \u001b[33m100.0K\u001b[0m `- c [\u001b[33m\u001b[0m]\nE - \u001b[31m100.0K\u001b[0m `- f3.bin [\u001b[31m\u001b[0m]...\nE \nE ...Full output truncated (6 lines hidden), use '-vv' to show\n_____________________________ test_version_command _____________________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_seed.py:39: in test_version_command\n assert \"tkrzw\" in result.stdout, \"Backend missing\"\nE AssertionError: Backend missing\nE assert 'tkrzw' in 'duc version: 1.5.0-rc1\\noptions: cairo x11 ui sqlite3\\n'\nE + where 'duc version: 1.5.0-rc1\\noptions: cairo x11 ui sqlite3\\n' = CompletedProcess(args=['/workspace/executable', '--version'], returncode=0, stdout='duc version: 1.5.0-rc1\\noptions: cairo x11 ui sqlite3\\n', stderr='').stdout\n_____________________________ test_cgi_list_option _____________________________\n[gw1] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_cgi.py:307: in test_cgi_list_option\n assert headers[0] == \"Filename\"\nE AssertionError: assert 'Name' == 'Filename'\nE \nE - Filename\nE + Name\n_________________ test_index_buckets_exceeds_max_shows_warning _________________\n[gw9] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_index.py:933: in test_index_buckets_exceeds_max_shows_warning\n assert \"Cannot use more than 512 histogram buckets.\" in result.stderr, \\\nE AssertionError: Missing buckets max warning in stderr\nE assert 'Cannot use more than 512 histogram buckets.' in 'Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n'\nE + where 'Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n' = CompletedProcess(args=['/workspace/executable', 'index', '-v', '-B', '99999', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/test.db', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/tree'], returncode=0, stdout='', stderr='Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n').stderr\n___________________________ test_ui_option_apparent ____________________________\n[gw3] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_ui.py:412: in test_ui_option_apparent\n assert \"apparent size\" in screen, \"Not starting in apparent size mode\"\nE AssertionError: Not starting in apparent size mode\nE assert 'apparent size' in ' /tmp/pytest-of-root/pytest-0/popen-gw3/test_ui_option_apparent2/tree\\n 5.0M data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 8 docs/ [ ]\\n 5 src/ [ ]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 5.0MB in 6 files/directories\\n'\n_______________________ test_ui_basic_launch_and_display _______________________\n[gw2] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_ui.py:89: in test_ui_basic_launch_and_display\n assert \"actual size\" in screen, \"Size type not shown\"\nE AssertionError: Size type not shown\nE assert 'actual size' in ' /tmp/pytest-of-root/pytest-0/popen-gw2/test_ui_basic_launch_and_displ2/tree\\n 5.0M data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 4.0K docs/ [ ]\\n 4.0K src/ [ ]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 5.0MB in 6 files/directories\\n'\n_____________________________ test_ui_toggle_bytes _____________________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_ui.py:285: in test_ui_toggle_bytes\n assert normalized_screen == golden\nE AssertionError: assert ' \\n ...directories\\n' == ' \\n ...arent size)\\n'\nE \nE - \nE ? -\nE + \nE - 5242880 data/ [========================================]\nE + 5242880 data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\nE - 8 docs/ [ ]...\nE \nE ...Full output truncated (47 lines hidden), use '-vv' to show\n______________________ test_ui_navigation_down_and_enter _______________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_ui.py:147: in test_ui_navigation_down_and_enter\n assert \"actual size\" in screen, \"Size type not shown in footer\"\nE AssertionError: Size type not shown in footer\nE assert 'actual size' in ' /tmp/pytest-of-root/pytest-0/popen-gw5/test_ui_navigation_down_and_en2/tree/do\\n 4.0K readme.txt [+++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 4.0KB in 1 files/directories\\n'\n_________________________ test_ui_backspace_navigation _________________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_ui.py:196: in test_ui_backspace_navigation\n assert normalized_screen == golden\nE AssertionError: assert ' \\n 5...directories\\n' == ' \\n ...ctual size)\\n'\nE \nE - \nE ? -\nE + \nE - 5.0M data/ [========================================]\nE - 4.0K docs/ [ ]\nE - 4.0K src/ [ ]...\nE \nE ...Full output truncated (43 lines hidden), use '-vv' to show\n_____________________________ test_ui_toggle_count _____________________________\n[gw7] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_ui.py:324: in test_ui_toggle_count\n assert \"Total 6 files\" in screen, \"Not showing file counts\"\nE AssertionError: Not showing file counts\nE assert 'Total 6 files' in ' /tmp/pytest-of-root/pytest-0/popen-gw7/test_ui_toggle_count2/tree\\n 2 data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 2 docs/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 2 src/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 6 in 6 files/directories\\n'\n_____________________________ test_ui_option_count _____________________________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_ui.py:476: in test_ui_option_count\n assert \"Total 6 files\" in screen, \"Footer not showing file count mode\"\nE AssertionError: Footer not showing file count mode\nE assert 'Total 6 files' in ' /tmp/pytest-of-root/pytest-0/popen-gw0/test_ui_option_count2/tree\\n 2 data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 2 docs/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 2 src/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 6 in 6 files/directories\\n'\n_________________________ test_ui_toggle_apparent_size _________________________\n[gw6] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_ui.py:232: in test_ui_toggle_apparent_size\n assert \"apparent size\" in screen, \"Not in apparent size mode\"\nE AssertionError: Not in apparent size mode\nE assert 'apparent size' in ' /tmp/pytest-of-root/pytest-0/popen-gw6/test_ui_toggle_apparent_size2/tree\\n 5.0M data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 8 docs/ [ ]\\n 5 src/ [ ]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 5.0MB in 6 files/directories\\n'\n_____________________________ test_ui_toggle_graph _____________________________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n/workspace/eval/tests/test_ui.py:376: in test_ui_toggle_graph\n assert '[' not in data_line, \"Graph bars still present\"\nE AssertionError: Graph bars still present\nE assert '[' not in ' ...+++++++++++]'\nE \nE '[' is contained here:\nE 2 data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\nE ? +\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n=========================== short test summary info ============================\nFAILED tests/test_cgi.py::test_cgi_nonexistent_path - assert 0 == 1\nFAILED tests/test_cgi.py::test_cgi_custom_css_url - assert None == 'text/css'\nFAILED tests/test_index.py::test_index_topn_exceeds_max_limit - AssertionErro...\nFAILED tests/test_index.py::test_index_force_flag_overwrites_corrupted_db - A...\nFAILED tests/test_cgi.py::test_cgi_tooltip_command - AssertionError: assert '...\nFAILED tests/test_cgi.py::test_cgi_nonexistent_database - AssertionError: ass...\nFAILED tests/test_ls.py::test_recursive_dirs_only_filter - AssertionError: as...\nFAILED tests/test_index.py::test_index_topn_exceeds_max_shows_warning - Asser...\nFAILED tests/test_ls.py::test_color_with_graph_recursive_ascii - AssertionErr...\nFAILED tests/test_seed.py::test_version_command - AssertionError: Backend mis...\nFAILED tests/test_cgi.py::test_cgi_list_option - AssertionError: assert 'Name...\nFAILED tests/test_index.py::test_index_buckets_exceeds_max_shows_warning - As...\nFAILED tests/test_ui.py::test_ui_option_apparent - AssertionError: Not starti...\nFAILED tests/test_ui.py::test_ui_basic_launch_and_display - AssertionError: S...\nFAILED tests/test_ui.py::test_ui_toggle_bytes - AssertionError: assert ' /workspace/eval/tests/test_cgi.py:191: in test_cgi_nonexistent_path\n assert result.returncode == 1\nE assert 0 == 1\nE + where 0 = CompletedProcess(args=['/workspace/executable', 'cgi', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_cgi_nonexistent_path2/test.db'], returncode=0, stdout='Content-Type: text/html\\n\\n<!DOCTYPE html>\\n<head>\\n <meta charset=\"utf-8\" />\\n<style>\\nbody { font-family: \"arial\", \"sans-serif\"; font-size: 11px; }\\ntable, thead, tbody, tr, td, th { font-size: inherit; font-family: inherit; }\\n#main { display:table-cell; }\\n#index { border-bottom: solid 1px #777777; }\\n#index table td { padding-left: 5px; }\\n#graph { float: left; }\\n#list { float: left; }\\n#list table { margin-left: auto; margin-right: auto; }\\n#list table td { padding-left: 5px; }\\n#list table td.name, th.name { text-align: left; }\\n#list table td.size, th.size { text-align: right; }\\n#tooltip { display: none; position: absolute; background-color: white;\\n border: solid 1px black; padding: 3px; white-space: nowrap; }\\n</style>\\n<script>\\n window.onload = function() {\\n var img = document.getElementById(\\'duc_canvas\\');\\n var tt = document.getElementById(\\'tooltip\\');\\n var timer;\\n img.onmousedown = function(e) {\\n if(e.button == 0) {\\n var rect = img.getBoundingClientRect(img);\\n var x = e.clientX - rect.left;\\n var y = e.clientY - rect.top;\\n window.location = \\'?x=\\' + x + \\'&y=\\' + y + \\'&path=/nonexistent/path\\';\\n }\\n }\\n };\\n</script>\\n</head>\\n<body>\\n<div id=main>\\n<div id=index> <table>\\n <tr>\\n <th>Path</th>\\n <th>Size</th>\\n <th>Files</th>\\n <th>Directories</th>\\n <th>Date</th>\\n <th>Time</th>\\n </tr>\\n <tr>\\n <td><a href=\"/cgi-bin/duc.cgi?cmd=index&path=/tmp/pytest-of-root/pytest-0/popen-gw1/test_cgi_nonexistent_path2/tree\">/tmp/pytest-of-root/pytest-0/popen-gw1/test_cgi_nonexistent_path2/tree</a></td>\\n <td>4.0K</td>\\n <td>1</td>\\n <td>1</td>\\n <td>2026-10-09</td>\\n <td>05:33:15</td>\\n </tr>\\n </table>\\n</div>\\n</div>\\n</body>\\n</html>\\n', stderr='').returncode/workspace/eval/tests/test_cgi.py:145: in test_cgi_custom_css_url\n assert link.get(\"type\") == \"text/css\"\nE assert None == 'text/css'\nE + where None = get('type')\nE + where get = <link href=\"http://example.com/custom.css\" rel=\"stylesheet\"/>.get/workspace/eval/tests/test_index.py:850: in test_index_topn_exceeds_max_limit\n assert result.returncode == -6, f\"Expected crash with -6, got: {result.returncode}\"\nE AssertionError: Expected crash with -6, got: 0\nE assert 0 == -6\nE + where 0 = CompletedProcess(args=['/workspace/executable', 'index', '-v', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_li2/test.db', '-T', '2000', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_li2/tree'], returncode=0, stdout='', stderr='Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_li2/test.db\"\\nIndexed 1 files and 1 directories, (7B apparent, 4.0KB actual) in 0.00 secs.\\n').returncode/workspace/eval/tests/test_index.py:581: in test_index_force_flag_overwrites_corrupted_db\n assert result.returncode == 0, f\"Index with --force should succeed: {result.stderr}\"\nE AssertionError: Index with --force should succeed: Found big filesystem\nE Writing to database \"/tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db\"\nE Error opening: /tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db - Database corrupt and not usable\nE Database corrupt and not usable\nE \nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'index', '-v', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db', '-f', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/tree'], returncode=1, stdout='', stderr='Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db\"\\nError opening: /tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db - Database corrupt and not usable\\nDatabase corrupt and not usable\\n').returncode/workspace/eval/tests/test_cgi.py:224: in test_cgi_tooltip_command\n assert \"Content-Type: text/html\" in result.stdout\nE AssertionError: assert 'Content-Type: text/html' in 'Content-Type: text/plain\\n\\nbigfile\\n100.0K\\n'\nE + where 'Content-Type: text/plain\\n\\nbigfile\\n100.0K\\n' = CompletedProcess(args=['/workspace/executable', 'cgi', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_cgi_tooltip_command2/test.db'], returncode=0, stdout='Content-Type: text/plain\\n\\nbigfile\\n100.0K\\n', stderr='').stdout/workspace/eval/tests/test_cgi.py:168: in test_cgi_nonexistent_database\n assert \"Content-Type: text/plain\" in result.stdout\nE AssertionError: assert 'Content-Type: text/plain' in ''\nE + where '' = CompletedProcess(args=['/workspace/executable', 'cgi', '-d', '/nonexistent/database.db'], returncode=1, stdout='', stderr='Error opening: /nonexistent/database.db - Database not found\\nDatabase not found\\n').stdout/workspace/eval/tests/test_ls.py:776: in test_recursive_dirs_only_filter\n assert result.stdout == (RESOURCES / \"recursive_dirs_only.golden\").read_text()\nE AssertionError: assert '800.0K \u2570\u252c\u2500 a...00.0K \u251c\u2500 c\\n' == '800.0K \u2570\u252c\u2500 a...00.0K \u2570\u2500 c\\n'\nE \nE 800.0K \u2570\u252c\u2500 a\nE 600.0K \u251c\u2500 b\nE - 100.0K \u2570\u2500 c\nE ? ^\nE + 100.0K \u251c\u2500 c\nE ? ^/workspace/eval/tests/test_index.py:906: in test_index_topn_exceeds_max_shows_warning\n assert \"Cannot store more than 1000 topN files\" in result.stderr, \\\nE AssertionError: Missing topN max warning in stderr\nE assert 'Cannot store more than 1000 topN files' in 'Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n'\nE + where 'Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n' = CompletedProcess(args=['/workspace/executable', 'index', '-v', '-T', '99999', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/test.db', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/tree'], returncode=0, stdout='', stderr='Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n').stderr/workspace/eval/tests/test_ls.py:734: in test_color_with_graph_recursive_ascii\n assert output == (RESOURCES / \"color_graph_recursive_ascii.golden\").read_text()\nE AssertionError: assert '\\x1b[31m800....+++\\x1b[0m]\\n' == '\\x1b[31m800....31m\\x1b[0m]\\n'\nE \nE - #x1B[31m800.0K#x1B[0m `+- a [#x1B[31m#x1B[0m]\nE - #x1B[31m800.0K#x1B[0m | `- f1.bin [#x1B[31m#x1B[0m]\nE - #x1B[31m600.0K#x1B[0m |- b [#x1B[31m#x1B[0m]\nE - #x1B[31m600.0K#x1B[0m | `- f2.bin [#x1B[31m#x1B[0m]\nE - #x1B[33m100.0K#x1B[0m `- c [#x1B[33m#x1B[0m]\nE - #x1B[31m100.0K#x1B[0m `- f3.bin [#x1B[31m#x1B[0m]...\nE \nE ...Full output truncated (6 lines hidden), use '-vv' to show/workspace/eval/tests/test_cgi.py:307: in test_cgi_list_option\n assert headers[0] == \"Filename\"\nE AssertionError: assert 'Name' == 'Filename'\nE \nE - Filename\nE + Name/workspace/eval/tests/test_seed.py:39: in test_version_command\n assert \"tkrzw\" in result.stdout, \"Backend missing\"\nE AssertionError: Backend missing\nE assert 'tkrzw' in 'duc version: 1.5.0-rc1\\noptions: cairo x11 ui sqlite3\\n'\nE + where 'duc version: 1.5.0-rc1\\noptions: cairo x11 ui sqlite3\\n' = CompletedProcess(args=['/workspace/executable', '--version'], returncode=0, stdout='duc version: 1.5.0-rc1\\noptions: cairo x11 ui sqlite3\\n', stderr='').stdout/workspace/eval/tests/test_index.py:933: in test_index_buckets_exceeds_max_shows_warning\n assert \"Cannot use more than 512 histogram buckets.\" in result.stderr, \\\nE AssertionError: Missing buckets max warning in stderr\nE assert 'Cannot use more than 512 histogram buckets.' in 'Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n'\nE + where 'Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n' = CompletedProcess(args=['/workspace/executable', 'index', '-v', '-B', '99999', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/test.db', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/tree'], returncode=0, stdout='', stderr='Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n').stderr/workspace/eval/tests/test_ui.py:89: in test_ui_basic_launch_and_display\n assert \"actual size\" in screen, \"Size type not shown\"\nE AssertionError: Size type not shown\nE assert 'actual size' in ' /tmp/pytest-of-root/pytest-0/popen-gw2/test_ui_basic_launch_and_displ2/tree\\n 5.0M data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 4.0K docs/ [ ]\\n 4.0K src/ [ ]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 5.0MB in 6 files/directories\\n'/workspace/eval/tests/test_ui.py:412: in test_ui_option_apparent\n assert \"apparent size\" in screen, \"Not starting in apparent size mode\"\nE AssertionError: Not starting in apparent size mode\nE assert 'apparent size' in ' /tmp/pytest-of-root/pytest-0/popen-gw3/test_ui_option_apparent2/tree\\n 5.0M data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 8 docs/ [ ]\\n 5 src/ [ ]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 5.0MB in 6 files/directories\\n'/workspace/eval/tests/test_ui.py:285: in test_ui_toggle_bytes\n assert normalized_screen == golden\nE AssertionError: assert ' <TREE>\\n ...directories\\n' == ' <TREE>\\n ...arent size)\\n'\nE \nE - <TREE>\nE ? -\nE + <TREE>\nE - 5242880 data/ [========================================]\nE + 5242880 data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\nE - 8 docs/ [ ]...\nE \nE ...Full output truncated (47 lines hidden), use '-vv' to show/workspace/eval/tests/test_ui.py:196: in test_ui_backspace_navigation\n assert normalized_screen == golden\nE AssertionError: assert ' <TREE>\\n 5...directories\\n' == ' <TREE>\\n ...ctual size)\\n'\nE \nE - <TREE>\nE ? -\nE + <TREE>\nE - 5.0M data/ [========================================]\nE - 4.0K docs/ [ ]\nE - 4.0K src/ [ ]...\nE \nE ...Full output truncated (43 lines hidden), use '-vv' to show/workspace/eval/tests/test_ui.py:147: in test_ui_navigation_down_and_enter\n assert \"actual size\" in screen, \"Size type not shown in footer\"\nE AssertionError: Size type not shown in footer\nE assert 'actual size' in ' /tmp/pytest-of-root/pytest-0/popen-gw5/test_ui_navigation_down_and_en2/tree/do\\n 4.0K readme.txt [+++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 4.0KB in 1 files/directories\\n'/workspace/eval/tests/test_ui.py:324: in test_ui_toggle_count\n assert \"Total 6 files\" in screen, \"Not showing file counts\"\nE AssertionError: Not showing file counts\nE assert 'Total 6 files' in ' /tmp/pytest-of-root/pytest-0/popen-gw7/test_ui_toggle_count2/tree\\n 2 data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 2 docs/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 2 src/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 6 in 6 files/directories\\n'/workspace/eval/tests/test_ui.py:476: in test_ui_option_count\n assert \"Total 6 files\" in screen, \"Footer not showing file count mode\"\nE AssertionError: Footer not showing file count mode\nE assert 'Total 6 files' in ' /tmp/pytest-of-root/pytest-0/popen-gw0/test_ui_option_count2/tree\\n 2 data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 2 docs/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 2 src/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 6 in 6 files/directories\\n'/workspace/eval/tests/test_ui.py:232: in test_ui_toggle_apparent_size\n assert \"apparent size\" in screen, \"Not in apparent size mode\"\nE AssertionError: Not in apparent size mode\nE assert 'apparent size' in ' /tmp/pytest-of-root/pytest-0/popen-gw6/test_ui_toggle_apparent_size2/tree\\n 5.0M data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 8 docs/ [ ]\\n 5 src/ [ ]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 5.0MB in 6 files/directories\\n'/workspace/eval/tests/test_ui.py:376: in test_ui_toggle_graph\n assert '[' not in data_line, \"Graph bars still present\"\nE AssertionError: Graph bars still present\nE assert '[' not in ' ...+++++++++++]'\nE \nE '[' is contained here:\nE 2 data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\nE ? +", "returncode": 0, "exception_info": "", "branch": "b591f1a07fe0"}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.09256681334227324, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.07759368605911732, "output": "7ae9102aba73859306e3c979af8d6d64017de056bdef6117df20f2f7c57fe130 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.10498949466273189, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.15615878021344543, "output": "", "returncode": 0, "exception_info": ""}, {"step": "install_pytest_timeout_retry", "command": "mkdir -p /tmp/programbench-grader-plugins && rm -f /tmp/programbench-grader-plugins/programbench_pytest_timeout.py", "wall_time": 0.1342156557366252, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PROGRAMBENCH_PYTEST_ORIGINAL_PYTHONPATH=\"${PYTHONPATH-}\" && export PROGRAMBENCH_PYTEST_ORIGINAL_ADDOPTS=\"${PYTEST_ADDOPTS-}\" && export PYTHONPATH=\"/tmp/programbench-grader-plugins${PYTHONPATH:+:$PYTHONPATH}\" && export PYTEST_ADDOPTS=\"${PYTEST_ADDOPTS:-} -p programbench_pytest_timeout --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 5.412602549884468, "output": "============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0\nrootdir: /workspace\nplugins: timeout-2.4.0, rerunfailures-16.4, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 5.0s\ntimeout method: signal\ntimeout func_only: False\ncreated: 10/10 workers\n10 workers [7 items]\n\n.....RRRRFF [100%]\n=================================== FAILURES ===================================\n_________ test_home_dot_duc_db_backward_compat_is_preferred_and_warns __________\n[gw5] linux -- Python 3.10.12 /usr/bin/python3\n\n def test_home_dot_duc_db_backward_compat_is_preferred_and_warns():\n with TempHome() as th:\n # Create an old-style db file; duc should prefer it over XDG_CACHE_HOME.\n old_db = th.home / \".duc.db\"\n old_db.write_bytes(b\"not a real db\")\n \n r = run_duc(\"info\", env=th.env)\n assert r.returncode != 0\n err = (r.stdout + r.stderr).decode(errors=\"replace\")\n> assert \"Using old database\" in err\nE AssertionError: assert 'Using old database' in 'Error opening: /tmp/duc-home-w2b4zr35/xdgcache/duc/duc.db - Database not found\\nDatabase not found\\n'\n\neval/tests/test_config_env.py:147: AssertionError\n____________ test_default_db_uses_xdg_cache_home_when_parent_exists ____________\n[gw0] linux -- Python 3.10.12 /usr/bin/python3\n\n def test_default_db_uses_xdg_cache_home_when_parent_exists():\n with TempHome() as th:\n # duc does NOT create the parent directory for the db file itself;\n # it only mkdirs $XDG_CACHE_HOME/duc. So create XDG_CACHE_HOME first.\n Path(th.env[\"XDG_CACHE_HOME\"]).mkdir(parents=True)\n \n # Ensure indexing succeeds and creates the default db.\n with tempfile.TemporaryDirectory(prefix=\"duc-data-\") as td:\n make_tree(Path(td))\n r = run_duc(\"index\", td, env=th.env)\n> assert r.returncode == 0, (r.stdout.decode(), r.stderr.decode())\nE AssertionError: ('', 'Error opening: /tmp/duc-home-8bo_n6jx/xdgcache/duc/duc.db - Database not found\nE Database not found\nE ')\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'index', '/tmp/duc-data-xx0k9g5m'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/duc-home-8bo_n6jx/xdgcache/duc/duc.db - Database not found\\nDatabase not found\\n').returncode\n\neval/tests/test_config_env.py:66: AssertionError\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n=========================== short test summary info ============================\nFAILED eval/tests/test_config_env.py::test_home_dot_duc_db_backward_compat_is_preferred_and_warns\nFAILED eval/tests/test_config_env.py::test_default_db_uses_xdg_cache_home_when_parent_exists\n===================== 2 failed, 5 passed, 4 rerun in 2.87s =====================\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.\n", "returncode": 0, "exception_info": ""}, {"step": "results_read", "command": "docker cp 27211b103e447fccc8688244908f2df32994eda4d90f0be5df061686f9e4c118:/workspace/eval/results.xml /tmp/tmpdycwg6o4.xml", "wall_time": 0.03236508136615157, "output": "def test_home_dot_duc_db_backward_compat_is_preferred_and_warns():\n with TempHome() as th:\n # Create an old-style db file; duc should prefer it over XDG_CACHE_HOME.\n old_db = th.home / \".duc.db\"\n old_db.write_bytes(b\"not a real db\")\n \n r = run_duc(\"info\", env=th.env)\n assert r.returncode != 0\n err = (r.stdout + r.stderr).decode(errors=\"replace\")\n> assert \"Using old database\" in err\nE AssertionError: assert 'Using old database' in 'Error opening: /tmp/duc-home-w2b4zr35/xdgcache/duc/duc.db - Database not found\\nDatabase not found\\n'\n\neval/tests/test_config_env.py:147: AssertionErrordef test_default_db_uses_xdg_cache_home_when_parent_exists():\n with TempHome() as th:\n # duc does NOT create the parent directory for the db file itself;\n # it only mkdirs $XDG_CACHE_HOME/duc. So create XDG_CACHE_HOME first.\n Path(th.env[\"XDG_CACHE_HOME\"]).mkdir(parents=True)\n \n # Ensure indexing succeeds and creates the default db.\n with tempfile.TemporaryDirectory(prefix=\"duc-data-\") as td:\n make_tree(Path(td))\n r = run_duc(\"index\", td, env=th.env)\n> assert r.returncode == 0, (r.stdout.decode(), r.stderr.decode())\nE AssertionError: ('', 'Error opening: /tmp/duc-home-8bo_n6jx/xdgcache/duc/duc.db - Database not found\nE Database not found\nE ')\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'index', '/tmp/duc-data-xx0k9g5m'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/duc-home-8bo_n6jx/xdgcache/duc/duc.db - Database not found\\nDatabase not found\\n').returncode\n\neval/tests/test_config_env.py:66: AssertionError", "returncode": 0, "exception_info": "", "branch": "f127ed85a1b5"}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.10327382571995258, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.1365310326218605, "output": "7ae9102aba73859306e3c979af8d6d64017de056bdef6117df20f2f7c57fe130 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.08401017962023616, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.07765284786000848, "output": "", "returncode": 0, "exception_info": ""}, {"step": "install_pytest_timeout_retry", "command": "mkdir -p /tmp/programbench-grader-plugins && rm -f /tmp/programbench-grader-plugins/programbench_pytest_timeout.py", "wall_time": 0.162048714235425, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PROGRAMBENCH_PYTEST_ORIGINAL_PYTHONPATH=\"${PYTHONPATH-}\" && export PROGRAMBENCH_PYTEST_ORIGINAL_ADDOPTS=\"${PYTEST_ADDOPTS-}\" && export PYTHONPATH=\"/tmp/programbench-grader-plugins${PYTHONPATH:+:$PYTHONPATH}\" && export PYTEST_ADDOPTS=\"${PYTEST_ADDOPTS:-} -p programbench_pytest_timeout --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 3.8696803469210863, "output": "============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3\ncachedir: .pytest_cache\nrootdir: /workspace\nplugins: timeout-2.4.0, rerunfailures-16.4, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 5.0s\ntimeout method: signal\ntimeout func_only: False\ncreated: 10/10 workers\n10 workers [48 items]\n\nscheduling tests via LoadScheduling\n\neval/tests/test_help_main.py::test_help_has_global_options_section \neval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[graph] \neval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[xml] \neval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[gui] \neval/tests/test_help_main.py::test_help_exit_code_zero \neval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[index] \neval/tests/test_help_main.py::test_help_documents_global_flag[--help] \neval/tests/test_help_main.py::test_help_has_usage_line_for_main \neval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[ls] \neval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[help] \n[gw5] [ 2%] PASSED eval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[xml] \n[gw9] [ 4%] PASSED eval/tests/test_help_main.py::test_help_documents_global_flag[--help] \n[gw6] [ 6%] PASSED eval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[graph] \n[gw3] [ 8%] PASSED eval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[index] \n[gw8] [ 10%] PASSED eval/tests/test_help_main.py::test_help_has_global_options_section \n[gw0] [ 12%] PASSED eval/tests/test_help_main.py::test_help_exit_code_zero \n[gw4] [ 14%] PASSED eval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[ls] \n[gw7] [ 16%] PASSED eval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[gui] \n[gw2] [ 18%] PASSED eval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[help] \neval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[json] \neval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[cgi] \neval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[ui] \neval/tests/test_help_main.py::test_help_documents_global_flag[--debug] \neval/tests/test_help_main.py::test_help_goes_to_stdout_not_stderr \neval/tests/test_help_main.py::test_help_documents_global_flag[--quiet] \neval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[topn] \neval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[info] \neval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[histogram] \n[gw1] [ 20%] PASSED eval/tests/test_help_main.py::test_help_has_usage_line_for_main \neval/tests/test_help_main.py::test_help_mentions_available_subcommands_section \n[gw7] [ 22%] PASSED eval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[ui] \n[gw6] [ 25%] PASSED eval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[cgi] \neval/tests/test_help_subcommands.py::test_help_subcommand_index_matches_index_dash_help_exactly \neval/tests/test_help_main.py::test_short_help_matches_long_help_exactly \n[gw0] [ 27%] PASSED eval/tests/test_help_main.py::test_help_goes_to_stdout_not_stderr \n[gw4] [ 29%] PASSED eval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[topn] \n[gw8] [ 31%] PASSED eval/tests/test_help_main.py::test_help_documents_global_flag[--debug] \n[gw2] [ 33%] PASSED eval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[histogram] \n[gw9] [ 35%] PASSED eval/tests/test_help_main.py::test_help_documents_global_flag[--quiet] \n[gw3] [ 37%] PASSED eval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[info] \n[gw5] [ 39%] PASSED eval/tests/test_help_main.py::test_main_help_lists_expected_subcommand[json] \neval/tests/test_help_main.py::test_double_dash_then_help_shows_help_command_usage \neval/tests/test_help_subcommands.py::test_help_all_contains_per_command_usage_headers \neval/tests/test_help_main.py::test_help_documents_global_flag[--version] \neval/tests/test_help_subcommands.py::test_index_help_has_usage_and_description_lines \neval/tests/test_help_main.py::test_flag_ordering_help_then_version_prefers_version \neval/tests/test_help_main.py::test_help_documents_global_flag[--verbose] \neval/tests/test_help_main.py::test_help_trailing_newline_present \n[gw1] [ 41%] PASSED eval/tests/test_help_main.py::test_help_mentions_available_subcommands_section \neval/tests/test_help_subcommands.py::test_index_help_documents_flag[--bytes] \n[gw8] [ 43%] PASSED eval/tests/test_help_main.py::test_flag_ordering_help_then_version_prefers_version \neval/tests/test_help_subcommands.py::test_index_help_documents_flag[--force] \n[gw0] [ 45%] PASSED eval/tests/test_help_main.py::test_double_dash_then_help_shows_help_command_usage \n[gw4] [ 47%] PASSED eval/tests/test_help_subcommands.py::test_help_all_contains_per_command_usage_headers \n[gw9] [ 50%] PASSED eval/tests/test_help_main.py::test_help_documents_global_flag[--version] \n[gw2] [ 52%] PASSED eval/tests/test_help_subcommands.py::test_index_help_has_usage_and_description_lines \n[gw3] [ 54%] PASSED eval/tests/test_help_main.py::test_help_trailing_newline_present \n[gw5] [ 56%] PASSED eval/tests/test_help_main.py::test_help_documents_global_flag[--verbose] \neval/tests/test_help_subcommands.py::test_index_help_documents_flag[--fs-include=VAL] \neval/tests/test_help_subcommands.py::test_index_help_documents_flag[--fs-exclude=VAL] \neval/tests/test_help_subcommands.py::test_index_help_documents_flag[--hide-file-names] \neval/tests/test_help_subcommands.py::test_index_help_documents_flag[--check-hard-links] \neval/tests/test_help_subcommands.py::test_index_help_documents_flag[--uid=VAL] \neval/tests/test_help_subcommands.py::test_index_help_documents_flag[--exclude=VAL] \n[gw1] [ 58%] PASSED eval/tests/test_help_subcommands.py::test_index_help_documents_flag[--bytes] \neval/tests/test_help_subcommands.py::test_index_help_documents_flag[--topn=VAL] \n[gw6] [ 60%] PASSED eval/tests/test_help_main.py::test_short_help_matches_long_help_exactly \n[gw7] [ 62%] PASSED eval/tests/test_help_subcommands.py::test_help_subcommand_index_matches_index_dash_help_exactly \n[gw8] [ 64%] PASSED eval/tests/test_help_subcommands.py::test_index_help_documents_flag[--force] \neval/tests/test_help_subcommands.py::test_index_help_documents_flag[--buckets=VAL] \neval/tests/test_help_subcommands.py::test_index_help_documents_flag[--database=VAL] \neval/tests/test_help_subcommands.py::test_index_help_documents_flag[--topn-min=VAL] \n[gw2] [ 66%] PASSED eval/tests/test_help_subcommands.py::test_index_help_documents_flag[--fs-exclude=VAL] \n[gw5] [ 68%] PASSED eval/tests/test_help_subcommands.py::test_index_help_documents_flag[--uid=VAL] \n[gw9] [ 70%] PASSED eval/tests/test_help_subcommands.py::test_index_help_documents_flag[--fs-include=VAL] \n[gw1] [ 72%] PASSED eval/tests/test_help_subcommands.py::test_index_help_documents_flag[--topn=VAL] \n[gw4] [ 75%] PASSED eval/tests/test_help_subcommands.py::test_index_help_documents_flag[--check-hard-links] \n[gw3] [ 77%] PASSED eval/tests/test_help_subcommands.py::test_index_help_documents_flag[--hide-file-names] \n[gw0] [ 79%] PASSED eval/tests/test_help_subcommands.py::test_index_help_documents_flag[--exclude=VAL] \neval/tests/test_help_subcommands.py::test_index_help_documents_flag[--progress] \neval/tests/test_help_subcommands.py::test_help_command_has_its_own_usage \neval/tests/test_help_subcommands.py::test_index_help_documents_flag[--uncompressed] \neval/tests/test_help_subcommands.py::test_index_help_documents_flag[--one-file-system] \neval/tests/test_help_subcommands.py::test_index_help_documents_flag[--max-depth=VAL] \neval/tests/test_help_subcommands.py::test_index_help_documents_flag[--dry-run] \neval/tests/test_help_subcommands.py::test_index_help_documents_flag[--username=VAL] \n[gw8] [ 81%] PASSED eval/tests/test_help_subcommands.py::test_index_help_documents_flag[--topn-min=VAL] \n[gw7] [ 83%] PASSED eval/tests/test_help_subcommands.py::test_index_help_documents_flag[--buckets=VAL] \n[gw6] [ 85%] PASSED eval/tests/test_help_subcommands.py::test_index_help_documents_flag[--database=VAL] \n[gw2] [ 87%] PASSED eval/tests/test_help_subcommands.py::test_index_help_documents_flag[--progress] \n[gw1] [ 89%] PASSED eval/tests/test_help_subcommands.py::test_help_command_has_its_own_usage \n[gw9] [ 91%] PASSED eval/tests/test_help_subcommands.py::test_index_help_documents_flag[--one-file-system] \n[gw4] [ 93%] PASSED eval/tests/test_help_subcommands.py::test_index_help_documents_flag[--max-depth=VAL] \n[gw5] [ 95%] PASSED eval/tests/test_help_subcommands.py::test_index_help_documents_flag[--uncompressed] \n[gw0] [ 97%] PASSED eval/tests/test_help_subcommands.py::test_index_help_documents_flag[--username=VAL] \n[gw3] [100%] PASSED eval/tests/test_help_subcommands.py::test_index_help_documents_flag[--dry-run] \n\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n============================== 48 passed in 1.03s ==============================\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.\n", "returncode": 0, "exception_info": ""}, {"step": "results_read", "command": "docker cp 51fa9f83fedd22905fcbae7224325061157f7a309410f42284f04c12e9d666d5:/workspace/eval/results.xml /tmp/tmpxfto_qhu.xml", "wall_time": 0.028492885176092386, "output": "", "returncode": 0, "exception_info": "", "branch": "ccd0f2f3dd9a"}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.10624973196536303, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.08258080389350653, "output": "7ae9102aba73859306e3c979af8d6d64017de056bdef6117df20f2f7c57fe130 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.09184797713533044, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.1093926471658051, "output": "", "returncode": 0, "exception_info": ""}, {"step": "install_pytest_timeout_retry", "command": "mkdir -p /tmp/programbench-grader-plugins && rm -f /tmp/programbench-grader-plugins/programbench_pytest_timeout.py", "wall_time": 0.1381187317892909, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PROGRAMBENCH_PYTEST_ORIGINAL_PYTHONPATH=\"${PYTHONPATH-}\" && export PROGRAMBENCH_PYTEST_ORIGINAL_ADDOPTS=\"${PYTEST_ADDOPTS-}\" && export PYTHONPATH=\"/tmp/programbench-grader-plugins${PYTHONPATH:+:$PYTHONPATH}\" && export PYTEST_ADDOPTS=\"${PYTEST_ADDOPTS:-} -p programbench_pytest_timeout --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 3.479749242775142, "output": "============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3\ncachedir: .pytest_cache\nrootdir: /workspace\nplugins: timeout-2.4.0, rerunfailures-16.4, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 5.0s\ntimeout method: signal\ntimeout func_only: False\ncreated: 10/10 workers\n10 workers [9 items]\n\nscheduling tests via LoadScheduling\n\neval/tests/test_help_and_version.py::test_help_shows_subcommands_and_exits_0 \neval/tests/test_errors_and_exit_codes.py::test_unknown_top_level_option_shows_help_exit_0_and_no_stderr \neval/tests/test_help_and_version.py::test_version_prints_to_stdout_and_exit_0 \neval/tests/test_index_and_query_io.py::test_info_outputs_tabular_header_and_one_row \neval/tests/test_errors_and_exit_codes.py::test_unknown_subcommand_defaults_to_help_exit_0 \neval/tests/test_errors_and_exit_codes.py::test_missing_database_file_is_error_on_stderr_exit_1 \neval/tests/test_index_and_query_io.py::test_index_creates_db_file_and_is_silent_on_success \neval/tests/test_index_and_query_io.py::test_ls_ascii_tree_contains_created_entries \neval/tests/test_index_and_query_io.py::test_json_output_is_valid_json_and_has_expected_shape \n[gw4] [ 11%] PASSED eval/tests/test_help_and_version.py::test_version_prints_to_stdout_and_exit_0 \n[gw0] [ 22%] PASSED eval/tests/test_errors_and_exit_codes.py::test_unknown_subcommand_defaults_to_help_exit_0 \n[gw1] [ 33%] PASSED eval/tests/test_errors_and_exit_codes.py::test_missing_database_file_is_error_on_stderr_exit_1 \n[gw3] [ 44%] PASSED eval/tests/test_help_and_version.py::test_help_shows_subcommands_and_exits_0 \n[gw2] [ 55%] PASSED eval/tests/test_errors_and_exit_codes.py::test_unknown_top_level_option_shows_help_exit_0_and_no_stderr \n[gw6] [ 66%] PASSED eval/tests/test_index_and_query_io.py::test_info_outputs_tabular_header_and_one_row \n[gw8] [ 77%] PASSED eval/tests/test_index_and_query_io.py::test_json_output_is_valid_json_and_has_expected_shape \n[gw7] [ 88%] PASSED eval/tests/test_index_and_query_io.py::test_ls_ascii_tree_contains_created_entries \n[gw5] [100%] PASSED eval/tests/test_index_and_query_io.py::test_index_creates_db_file_and_is_silent_on_success \n\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n============================== 9 passed in 0.80s ===============================\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.\n", "returncode": 0, "exception_info": ""}, {"step": "results_read", "command": "docker cp aa443a59bebbd560f1ecbd6f2039c3edb484b8b6eaf815014a21fae62d8c93b2:/workspace/eval/results.xml /tmp/tmpj5n2p1i6.xml", "wall_time": 0.029281155206263065, "output": "", "returncode": 0, "exception_info": "", "branch": "a6aeb185c4bf"}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.08539035497233272, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.0910182916559279, "output": "7ae9102aba73859306e3c979af8d6d64017de056bdef6117df20f2f7c57fe130 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.08844958804547787, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.09942565392702818, "output": "", "returncode": 0, "exception_info": ""}, {"step": "install_pytest_timeout_retry", "command": "mkdir -p /tmp/programbench-grader-plugins && rm -f /tmp/programbench-grader-plugins/programbench_pytest_timeout.py", "wall_time": 0.097834677901119, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PROGRAMBENCH_PYTEST_ORIGINAL_PYTHONPATH=\"${PYTHONPATH-}\" && export PROGRAMBENCH_PYTEST_ORIGINAL_ADDOPTS=\"${PYTEST_ADDOPTS-}\" && export PYTHONPATH=\"/tmp/programbench-grader-plugins${PYTHONPATH:+:$PYTHONPATH}\" && export PYTEST_ADDOPTS=\"${PYTEST_ADDOPTS:-} -p programbench_pytest_timeout --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 3.505439412314445, "output": "============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3\ncachedir: .pytest_cache\nrootdir: /workspace\nplugins: timeout-2.4.0, rerunfailures-16.4, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 5.0s\ntimeout method: signal\ntimeout func_only: False\ncreated: 10/10 workers\n10 workers [30 items]\n\nscheduling tests via LoadScheduling\n\neval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[histogram] \neval/tests/test_subcommand_dispatch.py::test_help_lists_subcommands_and_global_options \neval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[json] \neval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[topn] \neval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[ui] \neval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[topn] \neval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[info] \neval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[info] \neval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[histogram] \neval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[cgi] \n[gw1] [ 3%] PASSED eval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[histogram] \n[gw4] [ 6%] PASSED eval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[json] \n[gw3] [ 10%] PASSED eval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[topn] \n[gw6] [ 13%] PASSED eval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[ui] \n[gw2] [ 16%] PASSED eval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[info] \n[gw5] [ 20%] PASSED eval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[cgi] \neval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[index] \neval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[graph] \neval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[xml] \neval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[help] \neval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[gui] \neval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[ls] \n[gw0] [ 23%] PASSED eval/tests/test_subcommand_dispatch.py::test_help_lists_subcommands_and_global_options \neval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[help] \n[gw9] [ 26%] PASSED eval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[topn] \neval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[xml] \n[gw3] [ 30%] PASSED eval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[xml] \n[gw1] [ 33%] PASSED eval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[index] \n[gw7] [ 36%] PASSED eval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[histogram] \n[gw0] [ 40%] PASSED eval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[help] \n[gw2] [ 43%] PASSED eval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[ls] \n[gw8] [ 46%] PASSED eval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[info] \n[gw4] [ 50%] PASSED eval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[graph] \n[gw5] [ 53%] PASSED eval/tests/test_subcommand_dispatch.py::test_each_subcommand_has_help[gui] \neval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[json] \neval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[ls] \neval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[cgi] \neval/tests/test_subcommand_dispatch.py::test_no_subcommand_shows_main_help_and_exits_zero \neval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[index] \neval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[graph] \neval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[ui] \neval/tests/test_subcommand_dispatch.py::test_unknown_subcommand_falls_back_to_main_help_and_exits_zero \n[gw6] [ 56%] PASSED eval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[help] \n[gw5] [ 60%] PASSED eval/tests/test_subcommand_dispatch.py::test_no_subcommand_shows_main_help_and_exits_zero \neval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[gui] \n[gw0] [ 63%] PASSED eval/tests/test_subcommand_dispatch.py::test_unknown_subcommand_falls_back_to_main_help_and_exits_zero \n[gw9] [ 66%] PASSED eval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[xml] \neval/tests/test_subcommand_dispatch.py::test_global_flag_before_subcommand_routes_to_subcommand \n[gw1] [ 70%] PASSED eval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[json] \n[gw4] [ 73%] PASSED eval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[graph] \neval/tests/test_subcommand_dispatch.py::test_global_flag_after_subcommand_is_not_treated_as_global_for_that_subcommand \n[gw3] [ 76%] PASSED eval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[cgi] \n[gw2] [ 80%] PASSED eval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[ui] \n[gw7] [ 83%] PASSED eval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[index] \n[gw8] [ 86%] PASSED eval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[ls] \neval/tests/test_subcommand_dispatch.py::test_help_all_works_when_provided_after_help_subcommand \n[gw9] [ 90%] PASSED eval/tests/test_subcommand_dispatch.py::test_global_flag_before_subcommand_routes_to_subcommand \n[gw6] [ 93%] PASSED eval/tests/test_subcommand_dispatch.py::test_subcommand_help_differs_from_main_help[gui] \n[gw1] [ 96%] PASSED eval/tests/test_subcommand_dispatch.py::test_global_flag_after_subcommand_is_not_treated_as_global_for_that_subcommand \n[gw7] [100%] PASSED eval/tests/test_subcommand_dispatch.py::test_help_all_works_when_provided_after_help_subcommand \n\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n============================== 30 passed in 1.04s ==============================\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.\n", "returncode": 0, "exception_info": ""}, {"step": "results_read", "command": "docker cp 37f0778ae7c7cfa4f4e499474b6f94f450182736beebe460a78967ef36df991d:/workspace/eval/results.xml /tmp/tmpus3mb0u1.xml", "wall_time": 0.029205302242189646, "output": "", "returncode": 0, "exception_info": "", "branch": "f11aedc66d80"}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.10340491402894258, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.11312255403026938, "output": "7ae9102aba73859306e3c979af8d6d64017de056bdef6117df20f2f7c57fe130 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.08003373118117452, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.09479371272027493, "output": "", "returncode": 0, "exception_info": ""}, {"step": "install_pytest_timeout_retry", "command": "mkdir -p /tmp/programbench-grader-plugins && rm -f /tmp/programbench-grader-plugins/programbench_pytest_timeout.py", "wall_time": 0.10285944910719991, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PROGRAMBENCH_PYTEST_ORIGINAL_PYTHONPATH=\"${PYTHONPATH-}\" && export PROGRAMBENCH_PYTEST_ORIGINAL_ADDOPTS=\"${PYTEST_ADDOPTS-}\" && export PYTHONPATH=\"/tmp/programbench-grader-plugins${PYTHONPATH:+:$PYTHONPATH}\" && export PYTEST_ADDOPTS=\"${PYTEST_ADDOPTS:-} -p programbench_pytest_timeout --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 3.58775981888175, "output": "============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3\ncachedir: .pytest_cache\nrootdir: /workspace\nplugins: timeout-2.4.0, rerunfailures-16.4, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 5.0s\ntimeout method: signal\ntimeout func_only: False\ncreated: 10/10 workers\n10 workers [19 items]\n\nscheduling tests via LoadScheduling\n\neval/tests/test_errors.py::test_unknown_subcommand_shows_usage \neval/tests/test_errors.py::test_index_exclude_filters_paths \neval/tests/test_help_and_version.py::test_root_help_contains_expected_subcommands \neval/tests/test_index_and_queries.py::test_info_reads_db \neval/tests/test_help_and_version.py::test_version_output \neval/tests/test_help_and_version.py::test_root_help_dashdash_help_equals_help \neval/tests/test_help_and_version.py::test_subcommand_help_smoke \neval/tests/test_errors.py::test_invalid_option_shows_error \neval/tests/test_errors.py::test_missing_database_for_ls_shows_error \n[gw9] [ 5%] SKIPPED eval/tests/test_index_and_queries.py::test_info_reads_db \neval/tests/test_index_and_queries.py::test_index_creates_db \n[gw0] [ 10%] PASSED eval/tests/test_errors.py::test_unknown_subcommand_shows_usage \n[gw4] [ 15%] PASSED eval/tests/test_help_and_version.py::test_version_output \n[gw6] [ 21%] PASSED eval/tests/test_help_and_version.py::test_root_help_contains_expected_subcommands \neval/tests/test_index_and_queries.py::test_json_output_is_valid_and_contains_known_names \n[gw1] [ 26%] PASSED eval/tests/test_errors.py::test_invalid_option_shows_error \n[gw4] [ 31%] SKIPPED eval/tests/test_index_and_queries.py::test_json_output_is_valid_and_contains_known_names \neval/tests/test_index_and_queries.py::test_ls_bytes_lists_expected_entries \n[gw2] [ 36%] PASSED eval/tests/test_errors.py::test_missing_database_for_ls_shows_error \n[gw0] [ 42%] SKIPPED eval/tests/test_index_and_queries.py::test_ls_bytes_lists_expected_entries \neval/tests/test_index_and_queries.py::test_topn_bytes_includes_largest_file \neval/tests/test_index_and_queries.py::test_ls_dirs_only_excludes_files \neval/tests/test_index_and_queries.py::test_ls_name_sort_changes_order \n[gw6] [ 47%] SKIPPED eval/tests/test_index_and_queries.py::test_topn_bytes_includes_largest_file \n[gw1] [ 52%] SKIPPED eval/tests/test_index_and_queries.py::test_ls_name_sort_changes_order \n[gw2] [ 57%] SKIPPED eval/tests/test_index_and_queries.py::test_ls_dirs_only_excludes_files \n[gw8] [ 63%] PASSED eval/tests/test_index_and_queries.py::test_index_creates_db \neval/tests/test_ui_tmux.py::test_ui_starts_and_quits \n[gw5] [ 68%] PASSED eval/tests/test_help_and_version.py::test_root_help_dashdash_help_equals_help \neval/tests/test_index_and_queries.py::test_xml_output_is_valid_and_contains_known_names \n[gw5] [ 73%] SKIPPED eval/tests/test_index_and_queries.py::test_xml_output_is_valid_and_contains_known_names \n[gw3] [ 78%] PASSED eval/tests/test_errors.py::test_index_exclude_filters_paths \neval/tests/test_index_and_queries.py::test_ls_directory_lists_self_not_contents \n[gw3] [ 84%] SKIPPED eval/tests/test_index_and_queries.py::test_ls_directory_lists_self_not_contents \n[gw7] [ 89%] PASSED eval/tests/test_help_and_version.py::test_subcommand_help_smoke \neval/tests/test_index_and_queries.py::test_histogram_smoke \n[gw7] [ 94%] SKIPPED eval/tests/test_index_and_queries.py::test_histogram_smoke \n[gw8] [100%] PASSED eval/tests/test_ui_tmux.py::test_ui_starts_and_quits \n\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n======================== 10 passed, 9 skipped in 1.06s =========================\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.\n", "returncode": 0, "exception_info": ""}, {"step": "results_read", "command": "docker cp d4d3040e5b15d6b78fd84732899e173349076f84de47ea01b3b743584add99b7:/workspace/eval/results.xml /tmp/tmpf2fg09ms.xml", "wall_time": 0.03469034004956484, "output": "/usr/local/lib/python3.10/dist-packages/pytest_dependency.py:101: test_info_reads_db depends on test_index_creates_db/usr/local/lib/python3.10/dist-packages/pytest_dependency.py:101: test_json_output_is_valid_and_contains_known_names depends on test_index_creates_db/usr/local/lib/python3.10/dist-packages/pytest_dependency.py:101: test_ls_bytes_lists_expected_entries depends on test_index_creates_db/usr/local/lib/python3.10/dist-packages/pytest_dependency.py:101: test_topn_bytes_includes_largest_file depends on test_index_creates_db/usr/local/lib/python3.10/dist-packages/pytest_dependency.py:101: test_ls_name_sort_changes_order depends on test_index_creates_db/usr/local/lib/python3.10/dist-packages/pytest_dependency.py:101: test_ls_dirs_only_excludes_files depends on test_index_creates_db/usr/local/lib/python3.10/dist-packages/pytest_dependency.py:101: test_xml_output_is_valid_and_contains_known_names depends on test_index_creates_db/usr/local/lib/python3.10/dist-packages/pytest_dependency.py:101: test_ls_directory_lists_self_not_contents depends on test_index_creates_db/usr/local/lib/python3.10/dist-packages/pytest_dependency.py:101: test_histogram_smoke depends on test_index_creates_db", "returncode": 0, "exception_info": "", "branch": "5d62c98c7dab"}, {"step": "restore_executable", "command": "rm -f ./executable && mv /opt/programbench-stashed-executable-do-not-modify ./executable && chmod +x ./executable", "wall_time": 0.09365769196301699, "output": "", "returncode": 0, "exception_info": ""}, {"step": "verify_executable_hash", "command": "sha256sum ./executable", "wall_time": 0.09226532513275743, "output": "7ae9102aba73859306e3c979af8d6d64017de056bdef6117df20f2f7c57fe130 ./executable\n", "returncode": 0, "exception_info": ""}, {"step": "clean_stale_results", "command": "rm -f eval/results.xml results.xml", "wall_time": 0.11011978285387158, "output": "", "returncode": 0, "exception_info": ""}, {"step": "patch_timeout_method", "command": "test -f eval/run.sh && sed -i 's/--timeout-method=thread/--timeout-method=signal/g' eval/run.sh || true", "wall_time": 0.13237091014161706, "output": "", "returncode": 0, "exception_info": ""}, {"step": "install_pytest_timeout_retry", "command": "mkdir -p /tmp/programbench-grader-plugins && rm -f /tmp/programbench-grader-plugins/programbench_pytest_timeout.py", "wall_time": 0.11014685221016407, "output": "", "returncode": 0, "exception_info": ""}, {"step": "run_tests", "command": "export PROGRAMBENCH_PYTEST_ORIGINAL_PYTHONPATH=\"${PYTHONPATH-}\" && export PROGRAMBENCH_PYTEST_ORIGINAL_ADDOPTS=\"${PYTEST_ADDOPTS-}\" && export PYTHONPATH=\"/tmp/programbench-grader-plugins${PYTHONPATH:+:$PYTHONPATH}\" && export PYTEST_ADDOPTS=\"${PYTEST_ADDOPTS:-} -p programbench_pytest_timeout --reruns=2 --reruns-delay=1\" && chmod +x ./eval/run.sh && ./eval/run.sh", "wall_time": 3.35304640699178, "output": "============================= test session starts ==============================\nplatform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3\ncachedir: .pytest_cache\nrootdir: /workspace\nplugins: timeout-2.4.0, rerunfailures-16.4, libtmux-0.58.0, dependency-0.6.1, xdist-3.8.0\ntimeout: 5.0s\ntimeout method: signal\ntimeout func_only: False\ncreated: 10/10 workers\n10 workers [3 items]\n\nscheduling tests via LoadScheduling\n\neval/tests/test_duc_externalized_from_testsh.py::test_ext_testsh_ls_output_md5_is_one_of_expected \neval/tests/test_duc_externalized_from_testsh.py::test_ext_testsh_index_report_counts_and_sizes_regex \neval/tests/test_duc_externalized_from_testsh.py::test_ext_testsh_backend_type_mismatch_db_rejected \n[gw0] [ 33%] PASSED eval/tests/test_duc_externalized_from_testsh.py::test_ext_testsh_index_report_counts_and_sizes_regex \n[gw1] [ 66%] PASSED eval/tests/test_duc_externalized_from_testsh.py::test_ext_testsh_ls_output_md5_is_one_of_expected \n[gw3] [100%] PASSED eval/tests/test_duc_externalized_from_testsh.py::test_ext_testsh_backend_type_mismatch_db_rejected \n\n--------------- generated xml file: /workspace/eval/results.xml ----------------\n============================== 3 passed in 0.95s ===============================\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.\n", "returncode": 0, "exception_info": ""}, {"step": "results_read", "command": "docker cp 8a806df27cf68c9941a0ede3a653c36a4d72b3b2d62f204e795cef24177e29a1:/workspace/eval/results.xml /tmp/tmp190x88_1.xml", "wall_time": 0.02841691067442298, "output": "", "returncode": 0, "exception_info": "", "branch": "2406588b54b8"}], "failures": {"63ece4f28ebd/tests.test_50_percent.TestMoreLsCombinations.test_ls_bytes_apparent_count": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-b', '-a', '--count', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_bytes_apparent_count(self):\n \"\"\"Test ls with bytes, apparent, and count\"\"\"\n result = run(\"ls\", \"-b\", \"-a\", \"--count\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-b', '-a', '--count', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_50_percent.py:22: AssertionError"}, "63ece4f28ebd/tests.test_additional_coverage_phase2.TestManualSubcommand.test_manual_command_exists": {"message": "assert b'### Global options' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\n + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout", "text": "self = \n\n def test_manual_command_exists(self):\n \"\"\"Test that the manual subcommand produces markdown-style documentation.\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n> assert b\"### Global options\" in result.stdout\nE assert b'### Global options' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_additional_coverage_phase2.py:16: AssertionError"}, "63ece4f28ebd/tests.test_absolutely_50.TestFinal.test_ls_color_various_paths": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--color', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_color_various_paths(self):\n \"\"\"Test ls color on various paths\"\"\"\n result = run(\"ls\", \"--color\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--color', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_absolutely_50.py:22: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestCmdIndexCoverage.test_index_with_bytes_flag": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_index_with_bytes_flag(self):\n \"\"\"Test index --bytes flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--bytes\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:57: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--bytes', '--database=/tmp/tmp7wwbcar8/test.db', '/tmp/tmp7wwbcar8/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestDatabasePathHandling.test_database_short_form_no_space": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_database_short_form_no_space(self):\n \"\"\"Test -ddatabase short form without space.\"\"\"\n> result = run(\"ls\", \"-d/tmp/test.db\")\n\ntests/test_coverage_improvement.py:228: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ls', '-d/tmp/test.db'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_50_percent.TestMoreLsCombinations.test_ls_classify_graph_ascii": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-F', '-g', '--ascii', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_classify_graph_ascii(self):\n \"\"\"Test ls with classify, graph, and ascii\"\"\"\n result = run(\"ls\", \"-F\", \"-g\", \"--ascii\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-F', '-g', '--ascii', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_50_percent.py:27: AssertionError"}, "63ece4f28ebd/tests.test_coverage_boost.TestManualCommand.test_manual_command_generates_markdown": {"message": "assert b'### Global options' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\n + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout", "text": "self = \n\n def test_manual_command_generates_markdown(self):\n \"\"\"Test manual command produces markdown documentation\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n # Check for markdown headers\n> assert b\"### Global options\" in result.stdout\nE assert b'### Global options' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_coverage_boost.py:25: AssertionError"}, "63ece4f28ebd/tests.test_additional_coverage_phase2.TestManualSubcommand.test_manual_shows_all_subcommands": {"message": "assert b'### duc index' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\n + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout", "text": "self = \n\n def test_manual_shows_all_subcommands(self):\n \"\"\"Test that manual output includes all major subcommands.\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n> assert b\"### duc index\" in result.stdout\nE assert b'### duc index' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_additional_coverage_phase2.py:23: AssertionError"}, "63ece4f28ebd/tests.test_absolutely_50.TestFinal.test_xml_nested_deep_paths": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_xml_nested_deep_paths(self):\n \"\"\"Test XML on deeply nested paths\"\"\"\n paths = [\n \"/tmp/complex_test\",\n \"/tmp/complex_test/subdir1\",\n \"/tmp/complex_test/subdir1/subdir2\"\n ]\n for path in paths:\n result = run(\"xml\", f\"--database={COMPLEX_DB}\", path)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_absolutely_50.py:44: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestCmdIndexCoverage.test_index_with_force_flag": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_index_with_force_flag(self):\n \"\"\"Test index --force flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--force\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:33: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--force', '--database=/tmp/tmpq534oxyl/test.db', '/tmp/tmpq534oxyl/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestCmdIndexCoverage.test_index_with_check_hard_links": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_index_with_check_hard_links(self):\n \"\"\"Test index --check-hard-links flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--check-hard-links\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:69: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--check-hard-links', '--database=/tmp/tmpflg0bwgl/test.db', '/tmp/tmpflg0bwgl/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestGraphCommandOptions.test_graph_palette_size": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_graph_palette_size(self):\n \"\"\"Test graph with size palette.\"\"\"\n> result = run(\"graph\", \"--palette=size\", \"--help\")\n\ntests/test_coverage_improvement.py:237: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--palette=size', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_50_percent.TestMoreLsCombinations.test_ls_recursive_name_sort": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-R', '-n', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_recursive_name_sort(self):\n \"\"\"Test ls recursive with name sort\"\"\"\n result = run(\"ls\", \"-R\", \"-n\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-R', '-n', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_50_percent.py:32: AssertionError"}, "63ece4f28ebd/tests.test_coverage_boost.TestManualCommand.test_manual_command_documents_all_subcommands": {"message": "assert (b'### duc ' + b'help') in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\n + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout", "text": "self = \n\n def test_manual_command_documents_all_subcommands(self):\n \"\"\"Test manual documents all major subcommands\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n subcommands = [b\"help\", b\"histogram\", b\"index\", b\"info\", b\"ls\",\n b\"topn\", b\"xml\", b\"json\", b\"graph\", b\"cgi\", b\"gui\", b\"ui\"]\n for cmd in subcommands:\n> assert b\"### duc \" + cmd in result.stdout\nE assert (b'### duc ' + b'help') in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_coverage_boost.py:41: AssertionError"}, "63ece4f28ebd/tests.test_additional_coverage_phase2.TestManualSubcommand.test_manual_shows_option_format": {"message": "assert b'`--debug`:' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\n + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout", "text": "self = \n\n def test_manual_shows_option_format(self):\n \"\"\"Test that manual output uses markdown formatting for options.\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n # Check for markdown-style formatting\n> assert b\"`--debug`:\" in result.stdout\nE assert b'`--debug`:' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_additional_coverage_phase2.py:36: AssertionError"}, "63ece4f28ebd/tests.test_edge_coverage.TestMinSizeFiltering.test_json_min_size_large": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--min_size=1000000', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_json_min_size_large(self):\n \"\"\"Test JSON with large min size\"\"\"\n result = run(\"json\", \"--min_size=1000000\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--min_size=1000000', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:91: AssertionError"}, "63ece4f28ebd/tests.test_edge_coverage.TestRecursiveListing.test_ls_recursive_with_levels_0": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--recursive', '--levels=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_recursive_with_levels_0(self):\n \"\"\"Test ls with levels=0\"\"\"\n result = run(\"ls\", \"--recursive\", \"--levels=0\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--recursive', '--levels=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:21: AssertionError"}, "63ece4f28ebd/tests.test_absolutely_50.TestFinal.test_json_nested_deep_paths": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_json_nested_deep_paths(self):\n \"\"\"Test JSON on deeply nested paths\"\"\"\n paths = [\n \"/tmp/complex_test\",\n \"/tmp/complex_test/subdir1\",\n \"/tmp/complex_test/subdir1/subdir2\"\n ]\n for path in paths:\n result = run(\"json\", f\"--database={COMPLEX_DB}\", path)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_absolutely_50.py:56: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestCmdIndexCoverage.test_index_with_progress_flag": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_index_with_progress_flag(self):\n \"\"\"Test index --progress flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--progress\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:45: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--progress', '--database=/tmp/tmpavonhtlw/test.db', '/tmp/tmpavonhtlw/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_edge_coverage.TestNameSorting.test_ls_name_sort": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--name-sort', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_name_sort(self):\n \"\"\"Test ls sorts by name\"\"\"\n result = run(\"ls\", \"--name-sort\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--name-sort', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:186: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestCmdIndexCoverage.test_index_with_hide_file_names": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_index_with_hide_file_names(self):\n \"\"\"Test index --hide-file-names flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--hide-file-names\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:81: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--hide-file-names', '--database=/tmp/tmpg_hw_f4n/test.db', '/tmp/tmpg_hw_f4n/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestGraphCommandOptions.test_graph_palette_rainbow": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_graph_palette_rainbow(self):\n \"\"\"Test graph with rainbow palette.\"\"\"\n> result = run(\"graph\", \"--palette=rainbow\", \"--help\")\n\ntests/test_coverage_improvement.py:243: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--palette=rainbow', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_coverage_boost.TestManualCommand.test_manual_command_includes_option_descriptions": {"message": "assert b'database file' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\n + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout", "text": "self = \n\n def test_manual_command_includes_option_descriptions(self):\n \"\"\"Test manual includes detailed option descriptions\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n # Check for common option descriptions\n assert b\"increase verbosity\" in result.stdout\n> assert b\"database file\" in result.stdout\nE assert b'database file' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_coverage_boost.py:49: AssertionError"}, "63ece4f28ebd/tests.test_50_percent.TestLsColorASCII.test_ls_color_classify": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-c', '-F', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_color_classify(self):\n \"\"\"Test ls with color and classify\"\"\"\n result = run(\"ls\", \"-c\", \"-F\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-c', '-F', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_50_percent.py:64: AssertionError"}, "63ece4f28ebd/tests.test_additional_coverage_phase2.TestManualSubcommand.test_manual_shows_command_usage": {"message": "assert b'Options for command' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\n + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout", "text": "self = \n\n def test_manual_shows_command_usage(self):\n \"\"\"Test that manual output includes usage patterns for commands.\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n # Should show usage patterns\n> assert b\"Options for command\" in result.stdout\nE assert b'Options for command' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_additional_coverage_phase2.py:54: AssertionError"}, "63ece4f28ebd/tests.test_edge_coverage.TestMinSizeFiltering.test_xml_min_size_zero": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--min_size=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_xml_min_size_zero(self):\n \"\"\"Test XML with min_size=0\"\"\"\n result = run(\"xml\", \"--min_size=0\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--min_size=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:98: AssertionError"}, "63ece4f28ebd/tests.test_edge_coverage.TestRecursiveListing.test_ls_recursive_with_levels_10": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--recursive', '--levels=10', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_recursive_with_levels_10(self):\n \"\"\"Test ls with high level count\"\"\"\n result = run(\"ls\", \"--recursive\", \"--levels=10\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--recursive', '--levels=10', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:26: AssertionError"}, "63ece4f28ebd/tests.test_absolutely_50.TestFinal.test_ls_full_path_all_dirs": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--full-path', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_full_path_all_dirs(self):\n \"\"\"Test ls full-path on all directories\"\"\"\n result = run(\"ls\", \"--full-path\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--full-path', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_absolutely_50.py:63: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestGraphCommandOptions.test_graph_dark": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_graph_dark(self):\n \"\"\"Test graph dark flag.\"\"\"\n> result = run(\"graph\", \"--dark\", \"--help\")\n\ntests/test_coverage_improvement.py:322: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--dark', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_edge_coverage.TestFullPathMode.test_ls_full_path_recursive": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--full-path', '--recursive', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_full_path_recursive(self):\n \"\"\"Test ls full-path with recursive\"\"\"\n result = run(\"ls\", \"--full-path\", \"--recursive\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--full-path', '--recursive', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:236: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestCmdIndexCoverage.test_index_with_one_file_system": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_index_with_one_file_system(self):\n \"\"\"Test index --one-file-system flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--one-file-system\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:93: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--one-file-system', '--database=/tmp/tmpugn_l9wn/test.db', '/tmp/tmpugn_l9wn/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestGraphCommandOptions.test_graph_palette_greyscale": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_graph_palette_greyscale(self):\n \"\"\"Test graph with greyscale palette.\"\"\"\n> result = run(\"graph\", \"--palette=greyscale\", \"--help\")\n\ntests/test_coverage_improvement.py:249: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--palette=greyscale', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_50_percent.TestLsColorASCII.test_ls_color_graph": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--color', '--graph', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_color_graph(self):\n \"\"\"Test ls with color and graph\"\"\"\n result = run(\"ls\", \"--color\", \"--graph\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--color', '--graph', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_50_percent.py:69: AssertionError"}, "63ece4f28ebd/tests.test_edge_coverage.TestMinSizeFiltering.test_json_min_size_zero": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--min_size=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_json_min_size_zero(self):\n \"\"\"Test JSON with min_size=0\"\"\"\n result = run(\"json\", \"--min_size=0\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--min_size=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:104: AssertionError"}, "63ece4f28ebd/tests.test_edge_coverage.TestSizeDisplayFormats.test_ls_bytes_exact": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--bytes', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_bytes_exact(self):\n \"\"\"Test ls shows exact bytes\"\"\"\n result = run(\"ls\", \"--bytes\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--bytes', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:35: AssertionError"}, "63ece4f28ebd/tests.test_absolutely_50.TestFinal.test_histogram_all_databases": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_histogram_all_databases(self):\n \"\"\"Test histogram on both databases\"\"\"\n result = run(\"histogram\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_absolutely_50.py:70: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestGraphCommandOptions.test_graph_dpi": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_graph_dpi(self):\n \"\"\"Test graph dpi option.\"\"\"\n> result = run(\"graph\", \"--dpi=150\", \"--help\")\n\ntests/test_coverage_improvement.py:328: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--dpi=150', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestCmdIndexCoverage.test_index_with_uncompressed": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_index_with_uncompressed(self):\n \"\"\"Test index --uncompressed flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--uncompressed\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:105: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--uncompressed', '--database=/tmp/tmptuu1jdz9/test.db', '/tmp/tmptuu1jdz9/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_edge_coverage.TestAsciiMode.test_ls_ascii_tree": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--ascii', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_ascii_tree(self):\n \"\"\"Test ls ASCII tree characters\"\"\"\n result = run(\"ls\", \"--ascii\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--ascii', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:244: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestGraphCommandOptions.test_graph_palette_monochrome": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_graph_palette_monochrome(self):\n \"\"\"Test graph with monochrome palette.\"\"\"\n> result = run(\"graph\", \"--palette=monochrome\", \"--help\")\n\ntests/test_coverage_improvement.py:255: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--palette=monochrome', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_edge_coverage.TestCountMode.test_ls_count_mode": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--count', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_count_mode(self):\n \"\"\"Test ls with count instead of size\"\"\"\n result = run(\"ls\", \"--count\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--count', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:113: AssertionError"}, "63ece4f28ebd/tests.test_50_percent.TestXmlJsonMinSizeVariations.test_xml_min_size_10": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '-s', '10', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_xml_min_size_10(self):\n \"\"\"Test XML with min_size 10\"\"\"\n result = run(\"xml\", \"-s\", \"10\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '-s', '10', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_50_percent.py:95: AssertionError"}, "63ece4f28ebd/tests.test_edge_coverage.TestSizeDisplayFormats.test_info_bytes_exact": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--bytes', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_info_bytes_exact(self):\n \"\"\"Test info shows exact bytes\"\"\"\n result = run(\"info\", \"--bytes\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--bytes', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:42: AssertionError"}, "63ece4f28ebd/tests.test_absolutely_50.TestFinal.test_info_all_databases": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_info_all_databases(self):\n \"\"\"Test info on both databases\"\"\"\n result = run(\"info\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_absolutely_50.py:79: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestInfoCommandOptions.test_info_apparent": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_info_apparent(self):\n \"\"\"Test info with apparent flag.\"\"\"\n> result = run(\"info\", \"--apparent\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:337: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'info', '--apparent', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_final_14_lines.TestEvenMoreCombinations.test_ls_directory_recursive": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-D', '-R', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_directory_recursive(self):\n \"\"\"Test ls -D with recursive\"\"\"\n result = run(\"ls\", \"-D\", \"-R\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-D', '-R', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_final_14_lines.py:21: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestCmdIndexCoverage.test_index_with_buckets": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_index_with_buckets(self):\n \"\"\"Test index --buckets flag with value.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--buckets=32\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:117: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--buckets=32', '--database=/tmp/tmp7ueft6uv/test.db', '/tmp/tmp7ueft6uv/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestGraphCommandOptions.test_graph_palette_classic": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_graph_palette_classic(self):\n \"\"\"Test graph with classic palette.\"\"\"\n> result = run(\"graph\", \"--palette=classic\", \"--help\")\n\ntests/test_coverage_improvement.py:261: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--palette=classic', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_50_percent.TestXmlJsonMinSizeVariations.test_json_min_size_10": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '-s', '10', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_json_min_size_10(self):\n \"\"\"Test JSON with min_size 10\"\"\"\n result = run(\"json\", \"-s\", \"10\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '-s', '10', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_50_percent.py:101: AssertionError"}, "63ece4f28ebd/tests.test_edge_coverage.TestColorOutput.test_ls_color_with_tty": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--color', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_color_with_tty(self):\n \"\"\"Test ls color option\"\"\"\n result = run(\"ls\", \"--color\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--color', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:52: AssertionError"}, "63ece4f28ebd/tests.test_edge_coverage.TestApparentVsActualSize.test_info_apparent_vs_actual": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_info_apparent_vs_actual(self):\n \"\"\"Test info shows different sizes for apparent vs actual\"\"\"\n result1 = run(\"info\", f\"--database={TEST_DB}\")\n result2 = run(\"info\", \"--apparent\", f\"--database={TEST_DB}\")\n> assert result1.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:137: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestInfoCommandOptions.test_info_bytes": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_info_bytes(self):\n \"\"\"Test info with bytes flag.\"\"\"\n> result = run(\"info\", \"--bytes\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:343: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'info', '--bytes', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_final_14_lines.TestEvenMoreCombinations.test_xml_all_subdirs": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_xml_all_subdirs(self):\n \"\"\"Test XML on all subdirectories\"\"\"\n result = run(\"xml\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_14_lines.py:26: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestCmdIndexCoverage.test_index_with_topn": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_index_with_topn(self):\n \"\"\"Test index --topn flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--topn=10\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:129: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--topn=10', '--database=/tmp/tmpez8_3wdz/test.db', '/tmp/tmpez8_3wdz/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestGraphCommandOptions.test_graph_output_formats": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_graph_output_formats(self):\n \"\"\"Test graph output format options.\"\"\"\n for fmt in [\"png\", \"svg\", \"pdf\", \"html\"]:\n> result = run(\"graph\", f\"--output=/tmp/test.{fmt}\", \"--help\")\n\ntests/test_coverage_improvement.py:268: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--output=/tmp/test.png', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestLsRecursiveOptions.test_ls_recursive": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--recursive', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_recursive(self):\n \"\"\"Test ls --recursive\"\"\"\n result = run(\"ls\", \"--recursive\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--recursive', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:21: AssertionError"}, "63ece4f28ebd/tests.test_50_percent.TestXmlJsonMinSizeVariations.test_xml_min_size_100": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--min_size=100', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_xml_min_size_100(self):\n \"\"\"Test XML with min_size 100\"\"\"\n result = run(\"xml\", \"--min_size=100\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--min_size=100', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_50_percent.py:107: AssertionError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestMultipleOptionCombinations.test_ls_all_display_options": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--bytes', '--classify', '--graph', '--ascii', '--count', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_all_display_options(self):\n \"\"\"Test ls with all display options\"\"\"\n result = run(\"ls\", \"--bytes\", \"--classify\", \"--graph\", \"--ascii\", \"--count\",\n f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--bytes', '--classify', '--graph', '--ascii', '--count', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:204: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestInfoCommandOptions.test_info_histogram": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_info_histogram(self):\n \"\"\"Test info with histogram flag.\"\"\"\n> result = run(\"info\", \"--histogram\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:349: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'info', '--histogram', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_edge_coverage.TestApparentVsActualSize.test_ls_apparent_size": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--apparent', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_apparent_size(self):\n \"\"\"Test ls with apparent size\"\"\"\n result = run(\"ls\", \"--apparent\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--apparent', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:145: AssertionError"}, "63ece4f28ebd/tests.test_edge_coverage.TestMinSizeFiltering.test_xml_min_size_large": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--min_size=1000000', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_xml_min_size_large(self):\n \"\"\"Test XML with large min size filters everything\"\"\"\n result = run(\"xml\", \"--min_size=1000000\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--min_size=1000000', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:84: AssertionError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestDatabasePaths.test_database_with_equals": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_database_with_equals(self):\n \"\"\"Test database option with equals sign\"\"\"\n result = run(\"info\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:281: AssertionError"}, "63ece4f28ebd/tests.test_final_14_lines.TestEvenMoreCombinations.test_json_all_subdirs": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_json_all_subdirs(self):\n \"\"\"Test JSON on all subdirectories\"\"\"\n result = run(\"json\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_14_lines.py:35: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestCmdIndexCoverage.test_index_with_topn_min": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_index_with_topn_min(self):\n \"\"\"Test index --topn-min flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--topn-min=1024\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:141: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--topn-min=1024', '--database=/tmp/tmp7zt9adv5/test.db', '/tmp/tmp7zt9adv5/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestGraphCommandOptions.test_graph_size_option": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_graph_size_option(self):\n \"\"\"Test graph size option.\"\"\"\n> result = run(\"graph\", \"--size=1024\", \"--help\")\n\ntests/test_coverage_improvement.py:274: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--size=1024', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestLsRecursiveOptions.test_ls_with_levels": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--levels=1', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_with_levels(self):\n \"\"\"Test ls --levels\"\"\"\n result = run(\"ls\", \"--levels=1\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--levels=1', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:27: AssertionError"}, "63ece4f28ebd/tests.test_50_percent.TestXmlJsonMinSizeVariations.test_json_min_size_100": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--min_size=100', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_json_min_size_100(self):\n \"\"\"Test JSON with min_size 100\"\"\"\n result = run(\"json\", \"--min_size=100\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--min_size=100', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_50_percent.py:112: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestInfoCommandOptions.test_info_short_options": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_info_short_options(self):\n \"\"\"Test info with short options.\"\"\"\n> result = run(\"info\", \"-a\", \"-b\", \"-H\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:355: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'info', '-a', '-b', '-H', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestMultipleOptionCombinations.test_info_all_options": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--bytes', '--apparent', '--histogram', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_info_all_options(self):\n \"\"\"Test info with all options\"\"\"\n result = run(\"info\", \"--bytes\", \"--apparent\", \"--histogram\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--bytes', '--apparent', '--histogram', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:210: AssertionError"}, "63ece4f28ebd/tests.test_edge_coverage.TestApparentVsActualSize.test_histogram_apparent_size": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '--apparent', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_histogram_apparent_size(self):\n \"\"\"Test histogram with apparent size\"\"\"\n result = run(\"histogram\", \"--apparent\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '--apparent', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_edge_coverage.py:151: AssertionError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestDatabasePaths.test_database_short_with_space": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_database_short_with_space(self):\n \"\"\"Test short database option with space\"\"\"\n result = run(\"info\", \"-d\", TEST_DB)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:286: AssertionError"}, "63ece4f28ebd/tests.test_final_14_lines.TestEvenMoreCombinations.test_ls_levels_0_through_5": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--levels=0', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_levels_0_through_5(self):\n \"\"\"Test ls with different level values\"\"\"\n for level in [0, 1, 2, 3]:\n result = run(\"ls\", f\"--levels={level}\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--levels=0', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_final_14_lines.py:45: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestCmdIndexCoverage.test_index_with_uid": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_index_with_uid(self):\n \"\"\"Test index --uid flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--uid=1000\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:153: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--uid=1000', '--database=/tmp/tmpbmrfng6c/test.db', '/tmp/tmpbmrfng6c/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_exactly_50_percent.TestExactly50.test_ls_recursive_all_levels_all_paths": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-R', '--levels=1', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_recursive_all_levels_all_paths(self):\n \"\"\"Test ls recursive with different levels on all paths\"\"\"\n paths = [\"/tmp/complex_test\", \"/tmp/complex_test/subdir1\"]\n for path in paths:\n for level in [1, 2, 3, 4]:\n result = run(\"ls\", \"-R\", f\"--levels={level}\", f\"--database={COMPLEX_DB}\", path)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-R', '--levels=1', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_exactly_50_percent.py:24: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestGraphCommandOptions.test_graph_levels_option": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_graph_levels_option(self):\n \"\"\"Test graph levels option.\"\"\"\n> result = run(\"graph\", \"--levels=5\", \"--help\")\n\ntests/test_coverage_improvement.py:280: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--levels=5', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestLsRecursiveOptions.test_ls_with_levels_2": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--levels=2', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_with_levels_2(self):\n \"\"\"Test ls with different level\"\"\"\n result = run(\"ls\", \"--levels=2\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--levels=2', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:32: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestHistogramCommandOptions.test_histogram_apparent": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_histogram_apparent(self):\n \"\"\"Test histogram with apparent flag.\"\"\"\n> result = run(\"histogram\", \"--apparent\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:364: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'histogram', '--apparent', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_50_percent.TestHistogramAllCombinations.test_histogram_all_flags": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '-a', '-b', '-t', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_histogram_all_flags(self):\n \"\"\"Test histogram with all flags\"\"\"\n result = run(\"histogram\", \"-a\", \"-b\", \"-t\", f\"--database={COMPLEX_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '-a', '-b', '-t', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_50_percent.py:134: AssertionError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestVerboseDebugOutput.test_info_with_verbose": {"message": "assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--verbose', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Reading from database \"/tmp/test.db\"\\nError opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_info_with_verbose(self):\n \"\"\"Test info with verbose flag\"\"\"\n result = run(\"info\", \"--verbose\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--verbose', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Reading from database \"/tmp/test.db\"\\nError opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:227: AssertionError"}, "63ece4f28ebd/tests.test_final_push.TestLsEdgeCases.test_ls_directory_flag": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-D', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_directory_flag(self):\n \"\"\"Test ls -D shows directory itself\"\"\"\n result = run(\"ls\", \"-D\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-D', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_final_push.py:22: AssertionError"}, "63ece4f28ebd/tests.test_edge_coverage.TestClassifyOption.test_ls_classify_shows_indicators": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--classify', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_classify_shows_indicators(self):\n \"\"\"Test ls classify adds indicators\"\"\"\n result = run(\"ls\", \"--classify\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--classify', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_edge_coverage.py:177: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestCmdIndexCoverage.test_index_with_username": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_index_with_username(self):\n \"\"\"Test index --username flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--username=root\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:165: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--username=root', '--database=/tmp/tmppktw4q7w/test.db', '/tmp/tmppktw4q7w/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestGraphCommandOptions.test_graph_ring_gap": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_graph_ring_gap(self):\n \"\"\"Test graph ring-gap option.\"\"\"\n> result = run(\"graph\", \"--ring-gap=2\", \"--help\")\n\ntests/test_coverage_improvement.py:286: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--ring-gap=2', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_final_push.TestInfoHistogram.test_info_histogram_display": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-H', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_info_histogram_display(self):\n \"\"\"Test info shows histogram\"\"\"\n result = run(\"info\", \"-H\", f\"--database={COMPLEX_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-H', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:111: AssertionError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestLsRecursiveOptions.test_ls_color": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--color', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_color(self):\n \"\"\"Test ls --color\"\"\"\n result = run(\"ls\", \"--color\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--color', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:37: AssertionError"}, "63ece4f28ebd/tests.test_final_push.TestXmlJsonEdgeCases.test_json_deep_path": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--database=/tmp/complex.db', '/tmp/complex_test/subdir1/subdir2'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_json_deep_path(self):\n \"\"\"Test JSON with deep path\"\"\"\n result = run(\"json\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test/subdir1/subdir2\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--database=/tmp/complex.db', '/tmp/complex_test/subdir1/subdir2'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:57: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestHistogramCommandOptions.test_histogram_bytes": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_histogram_bytes(self):\n \"\"\"Test histogram with bytes flag.\"\"\"\n> result = run(\"histogram\", \"--bytes\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:370: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'histogram', '--bytes', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_50_percent.TestInfoAllCombinations.test_info_all_flags": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-a', '-b', '-H', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_info_all_flags(self):\n \"\"\"Test info with all flags\"\"\"\n result = run(\"info\", \"-a\", \"-b\", \"-H\", f\"--database={COMPLEX_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-a', '-b', '-H', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_50_percent.py:143: AssertionError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestVerboseDebugOutput.test_ls_with_verbose": {"message": "assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-v', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Reading from database \"/tmp/test.db\"\\nError opening: /tmp/test.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_with_verbose(self):\n \"\"\"Test ls with verbose flag\"\"\"\n result = run(\"ls\", \"-v\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-v', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Reading from database \"/tmp/test.db\"\\nError opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:233: AssertionError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestXmlJsonRobustness.test_json_root_path": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_json_root_path(self):\n \"\"\"Test JSON with root path\"\"\"\n result = run(\"json\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:59: AssertionError"}, "63ece4f28ebd/tests.test_final_push.TestLsEdgeCases.test_ls_recursive_levels_max": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-R', '-l', '99', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_recursive_levels_max(self):\n \"\"\"Test ls with maximum levels\"\"\"\n result = run(\"ls\", \"-R\", \"-l\", \"99\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-R', '-l', '99', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_final_push.py:27: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestCmdIndexCoverage.test_index_with_fs_exclude": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_index_with_fs_exclude(self):\n \"\"\"Test index --fs-exclude flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--fs-exclude=tmpfs,proc\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:177: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--fs-exclude=tmpfs,proc', '--database=/tmp/tmpk7x_z_o7/test.db', '/tmp/tmpk7x_z_o7/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestGraphCommandOptions.test_graph_fuzz": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_graph_fuzz(self):\n \"\"\"Test graph fuzz option.\"\"\"\n> result = run(\"graph\", \"--fuzz=0.5\", \"--help\")\n\ntests/test_coverage_improvement.py:292: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--fuzz=0.5', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_final_push.TestLsFullPathRecursive.test_ls_full_path_recursive_nested": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--full-path', '-R', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_full_path_recursive_nested(self):\n \"\"\"Test full-path on nested structure\"\"\"\n result = run(\"ls\", \"--full-path\", \"-R\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--full-path', '-R', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_final_push.py:123: AssertionError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestLsRecursiveOptions.test_ls_dirs_only": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--dirs-only', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_dirs_only(self):\n \"\"\"Test ls --dirs-only\"\"\"\n result = run(\"ls\", \"--dirs-only\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--dirs-only', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:43: AssertionError"}, "63ece4f28ebd/tests.test_final_push.TestXmlJsonEdgeCases.test_xml_apparent_exclude_min": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '-a', '-x', '-s', '1', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_xml_apparent_exclude_min(self):\n \"\"\"Test XML with all filters\"\"\"\n result = run(\"xml\", \"-a\", \"-x\", \"-s\", \"1\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '-a', '-x', '-s', '1', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:64: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestHistogramCommandOptions.test_histogram_base10": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_histogram_base10(self):\n \"\"\"Test histogram with base10 flag.\"\"\"\n> result = run(\"histogram\", \"--base10\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:376: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'histogram', '--base10', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestVerboseDebugOutput.test_histogram_with_debug": {"message": "assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '--debug', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Reading from database \"/tmp/test.db\"\\nError opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_histogram_with_debug(self):\n \"\"\"Test histogram with debug flag\"\"\"\n result = run(\"histogram\", \"--debug\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '--debug', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Reading from database \"/tmp/test.db\"\\nError opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:239: AssertionError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestXmlJsonRobustness.test_xml_apparent_and_min_size": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--apparent', '--min_size=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_xml_apparent_and_min_size(self):\n \"\"\"Test XML with multiple filters\"\"\"\n result = run(\"xml\", \"--apparent\", \"--min_size=0\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--apparent', '--min_size=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:65: AssertionError"}, "63ece4f28ebd/tests.test_final_push.TestXmlJsonEdgeCases.test_xml_deep_path": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--database=/tmp/complex.db', '/tmp/complex_test/subdir1/subdir2'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_xml_deep_path(self):\n \"\"\"Test XML with deep path\"\"\"\n result = run(\"xml\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test/subdir1/subdir2\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--database=/tmp/complex.db', '/tmp/complex_test/subdir1/subdir2'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:50: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestCmdIndexCoverage.test_index_with_fs_include": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_index_with_fs_include(self):\n \"\"\"Test index --fs-include flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"--fs-include=ext4,xfs\", f\"--database={dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:189: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--fs-include=ext4,xfs', '--database=/tmp/tmpv3x2vgy7/test.db', '/tmp/tmpv3x2vgy7/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestGraphCommandOptions.test_graph_gradient": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_graph_gradient(self):\n \"\"\"Test graph gradient flag.\"\"\"\n> result = run(\"graph\", \"--gradient\", \"--help\")\n\ntests/test_coverage_improvement.py:298: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--gradient', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_last_10_lines.TestLast10Lines.test_ls_every_option_combination": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-a', '-b', '-F', '-c', '-g', '-R', '-n', '-D', '--ascii', '--count', '--dirs-only', '--full-path', '--levels=2', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_every_option_combination(self):\n \"\"\"Test ls with every option\"\"\"\n result = run(\"ls\", \"-a\", \"-b\", \"-F\", \"-c\", \"-g\", \"-R\", \"-n\", \"-D\",\n \"--ascii\", \"--count\", \"--dirs-only\", \"--full-path\",\n \"--levels=2\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-a', '-b', '-F', '-c', '-g', '-R', '-n', '-D', '--ascii', '--count', '--dirs-only', '--full-path', '--levels=2', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_last_10_lines.py:34: AssertionError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestXmlJsonRobustness.test_xml_root_path": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_xml_root_path(self):\n \"\"\"Test XML with root path\"\"\"\n result = run(\"xml\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:53: AssertionError"}, "63ece4f28ebd/tests.test_final_push.TestXmlJsonEdgeCases.test_json_apparent_exclude_min": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '-a', '-x', '-s', '1', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_json_apparent_exclude_min(self):\n \"\"\"Test JSON with all filters\"\"\"\n result = run(\"json\", \"-a\", \"-x\", \"-s\", \"1\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '-a', '-x', '-s', '1', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:71: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestHistogramCommandOptions.test_histogram_short_options": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_histogram_short_options(self):\n \"\"\"Test histogram with short options.\"\"\"\n> result = run(\"histogram\", \"-a\", \"-b\", \"-t\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:382: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'histogram', '-a', '-b', '-t', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_more_coverage.TestOptionFormatVariations.test_database_long_form": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_database_long_form(self):\n \"\"\"Test long form database option\"\"\"\n result = run(\"info\", \"--database=/tmp/test.db\")\n # Database works now\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:205: AssertionError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestVerboseDebugOutput.test_xml_with_quiet": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--quiet', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_xml_with_quiet(self):\n \"\"\"Test XML with quiet flag\"\"\"\n result = run(\"xml\", \"--quiet\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--quiet', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:245: AssertionError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestXmlJsonRobustness.test_json_apparent_and_min_size": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--apparent', '--min_size=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_json_apparent_and_min_size(self):\n \"\"\"Test JSON with multiple filters\"\"\"\n result = run(\"json\", \"--apparent\", \"--min_size=0\", f\"--database={TEST_DB}\", \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--apparent', '--min_size=0', '--database=/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:71: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestCmdIndexCoverage.test_index_short_options": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_index_short_options(self):\n \"\"\"Test index with short options.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n dbfile = Path(tmpdir) / \"test.db\"\n testdir = Path(tmpdir) / \"testdir\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"content\")\n \n> result = run(\"index\", \"-b\", \"-p\", f\"-d{dbfile}\", str(testdir))\n\ntests/test_coverage_improvement.py:201: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '-b', '-p', '-d/tmp/tmpfhp7yx5j/test.db', '/tmp/tmpfhp7yx5j/testdir']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestGraphCommandOptions.test_graph_bytes": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_graph_bytes(self):\n \"\"\"Test graph bytes flag.\"\"\"\n> result = run(\"graph\", \"--bytes\", \"--help\")\n\ntests/test_coverage_improvement.py:304: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--bytes', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_more_coverage.TestOptionFormatVariations.test_apparent_long_form": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--apparent', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_apparent_long_form(self):\n \"\"\"Test long form apparent option\"\"\"\n result = run(\"info\", \"--apparent\", \"--database=/tmp/test.db\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--apparent', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:232: AssertionError"}, "63ece4f28ebd/tests.test_last_10_lines.TestLast10Lines.test_xml_json_all_combinations_all_paths": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '-a', '-x', '-s', '10', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_xml_json_all_combinations_all_paths(self):\n \"\"\"Test XML and JSON with all option combinations on all paths\"\"\"\n paths = [\"/tmp/complex_test\", \"/tmp/complex_test/subdir1\",\n \"/tmp/complex_test/subdir1/subdir2\"]\n for path in paths:\n result = run(\"xml\", \"-a\", \"-x\", \"-s\", \"10\", f\"--database={COMPLEX_DB}\", path)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '-a', '-x', '-s', '10', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_last_10_lines.py:55: AssertionError"}, "63ece4f28ebd/tests.test_final_push.TestHistogramVariations.test_histogram_base10_bytes": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '-t', '-b', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_histogram_base10_bytes(self):\n \"\"\"Test histogram with base10 and bytes\"\"\"\n result = run(\"histogram\", \"-t\", \"-b\", f\"--database={COMPLEX_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '-t', '-b', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:96: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestTopnCommandOptions.test_topn_apparent": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_topn_apparent(self):\n \"\"\"Test topn with apparent flag.\"\"\"\n> result = run(\"topn\", \"--apparent\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:391: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'topn', '--apparent', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_more_coverage.TestOptionFormatVariations.test_database_short_form": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_database_short_form(self):\n \"\"\"Test short form database option\"\"\"\n result = run(\"info\", \"-d\", \"/tmp/test.db\")\n # Database works now\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:212: AssertionError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestShortFormOptions.test_info_short_options": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-a', '-b', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_info_short_options(self):\n \"\"\"Test info with all short options\"\"\"\n result = run(\"info\", \"-a\", \"-b\", \"-d\", TEST_DB)\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-a', '-b', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:254: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestDatabasePathHandling.test_database_with_equals_sign": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_database_with_equals_sign(self):\n \"\"\"Test --database=path format.\"\"\"\n> result = run(\"ls\", \"--database=/tmp/test.db\")\n\ntests/test_coverage_improvement.py:210: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ls', '--database=/tmp/test.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestGraphCommandOptions.test_graph_apparent": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_graph_apparent(self):\n \"\"\"Test graph apparent flag.\"\"\"\n> result = run(\"graph\", \"--apparent\", \"--help\")\n\ntests/test_coverage_improvement.py:310: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--apparent', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_more_coverage.TestEdgeCases.test_multiple_database_options": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-d', '/first.db', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_multiple_database_options(self):\n \"\"\"Test multiple database options (last wins)\"\"\"\n result = run(\"info\", \"-d\", \"/first.db\", \"--database=/tmp/test.db\")\n # Last wins, should use /tmp/test.db which exists\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-d', '/first.db', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:472: AssertionError"}, "63ece4f28ebd/tests.test_more_coverage.TestOptionFormatVariations.test_apparent_short_form": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-a', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_apparent_short_form(self):\n \"\"\"Test short form apparent option\"\"\"\n result = run(\"info\", \"-a\", \"-d\", \"/tmp/test.db\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-a', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:240: AssertionError"}, "63ece4f28ebd/tests.test_last_10_lines.TestLast10Lines.test_info_histogram_all_paths": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-a', '-b', '-H', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_info_histogram_all_paths(self):\n \"\"\"Test info --histogram on all databases\"\"\"\n result = run(\"info\", \"-a\", \"-b\", \"-H\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-a', '-b', '-H', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_last_10_lines.py:62: AssertionError"}, "63ece4f28ebd/tests.test_final_push.TestHistogramVariations.test_histogram_apparent_base10": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '-a', '--base10', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_histogram_apparent_base10(self):\n \"\"\"Test histogram with apparent and base10\"\"\"\n result = run(\"histogram\", \"-a\", \"--base10\", f\"--database={COMPLEX_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '-a', '--base10', '--database=/tmp/complex.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_push.py:102: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestTopnCommandOptions.test_topn_bytes": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_topn_bytes(self):\n \"\"\"Test topn with bytes flag.\"\"\"\n> result = run(\"topn\", \"--bytes\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:397: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'topn', '--bytes', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_more_coverage.TestOptionFormatVariations.test_bytes_long_form": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--bytes', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_bytes_long_form(self):\n \"\"\"Test long form bytes option\"\"\"\n result = run(\"info\", \"--bytes\", \"--database=/tmp/test.db\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--bytes', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:218: AssertionError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestShortFormOptions.test_ls_short_options": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-b', '-F', '-c', '-g', '-d', '/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_short_options(self):\n \"\"\"Test ls with short options\"\"\"\n result = run(\"ls\", \"-b\", \"-F\", \"-c\", \"-g\", \"-d\", TEST_DB, \"/tmp/testdir\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-b', '-F', '-c', '-g', '-d', '/tmp/test.db', '/tmp/testdir'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\n').returncode\n\ntests/test_final_coverage_push.py:260: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestDatabasePathHandling.test_database_with_space": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_database_with_space(self):\n \"\"\"Test --database path format.\"\"\"\n> result = run(\"ls\", \"--database\", \"/tmp/test.db\")\n\ntests/test_coverage_improvement.py:216: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ls', '--database', '/tmp/test.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestGraphCommandOptions.test_graph_count": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_graph_count(self):\n \"\"\"Test graph count flag.\"\"\"\n> result = run(\"graph\", \"--count\", \"--help\")\n\ntests/test_coverage_improvement.py:316: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--count', '--help']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_over_50.TestMore.test_xml_minsize_variations": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--min_size=5', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_xml_minsize_variations(self):\n \"\"\"Test XML with various min sizes\"\"\"\n for size in [5, 50, 500]:\n result = run(\"xml\", f\"--min_size={size}\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'xml', '--min_size=5', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_over_50.py:33: AssertionError"}, "63ece4f28ebd/tests.test_over_50.TestMore.test_ls_bytes_variations": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-b', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_bytes_variations(self):\n \"\"\"Test ls bytes with different paths\"\"\"\n result = run(\"ls\", \"-b\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-b', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_over_50.py:58: AssertionError"}, "63ece4f28ebd/tests.test_last_10_lines.TestLast10Lines.test_histogram_all_options_both_dbs": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '-a', '-b', '-t', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_histogram_all_options_both_dbs(self):\n \"\"\"Test histogram with all options on both DBs\"\"\"\n result = run(\"histogram\", \"-a\", \"-b\", \"-t\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'histogram', '-a', '-b', '-t', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_last_10_lines.py:71: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestTopnCommandOptions.test_topn_short_options": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_topn_short_options(self):\n \"\"\"Test topn with short options.\"\"\"\n> result = run(\"topn\", \"-a\", \"-b\", \"--database=/tmp/nonexistent.db\")\n\ntests/test_coverage_improvement.py:403: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'topn', '-a', '-b', '--database=/tmp/nonexistent.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_push_to_50_final.TestErrorPaths.test_ls_recursive_depth_boundary": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-R', '--levels=0', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_recursive_depth_boundary(self):\n \"\"\"Test ls recursive with boundary depths\"\"\"\n for depth in [0, 1, 100]:\n result = run(\"ls\", \"-R\", f\"--levels={depth}\", f\"--database={COMPLEX_DB}\",\n \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-R', '--levels=0', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_push_to_50_final.py:60: AssertionError"}, "63ece4f28ebd/tests.test_more_coverage.TestOptionFormatVariations.test_bytes_short_form": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-b', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_bytes_short_form(self):\n \"\"\"Test short form bytes option\"\"\"\n result = run(\"info\", \"-b\", \"-d\", \"/tmp/test.db\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '-b', '-d', '/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_more_coverage.py:226: AssertionError"}, "63ece4f28ebd/tests.test_quick_database_ops.TestQuickOps.test_ls_basic_output": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_ls_basic_output(self):\n \"\"\"Test ls produces output.\"\"\"\n> dbfile, testdir, tmpdir = create_tiny_db()\n\ntests/test_quick_database_ops.py:34: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_quick_database_ops.py:24: in create_tiny_db\n result = run(\"index\", f\"--database={dbfile}\", str(testdir))\ntests/test_quick_database_ops.py:12: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--database=/tmp/tmpqkxh31ck/d.db', '/tmp/tmpqkxh31ck/t']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None, env = None, startupinfo = None, creationflags = 0, shell = False\np2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16\nerrwrite = 17, restore_signals = True, gid = None, gids = None, uid = None\numask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_final_coverage_push.TestDatabasePaths.test_absolute_database_path": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_absolute_database_path(self):\n \"\"\"Test absolute database path\"\"\"\n result = run(\"info\", f\"--database={TEST_DB}\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'info', '--database=/tmp/test.db'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/test.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_final_coverage_push.py:275: AssertionError"}, "63ece4f28ebd/tests.test_coverage_improvement.TestDatabasePathHandling.test_database_short_form": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_database_short_form(self):\n \"\"\"Test -d database short form.\"\"\"\n> result = run(\"ls\", \"-d\", \"/tmp/test.db\")\n\ntests/test_coverage_improvement.py:222: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_coverage_improvement.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ls', '-d', '/tmp/test.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_over_50.TestMore.test_ls_with_path_variations1": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--database=/tmp/complex.db', '/tmp/complex_test/'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_with_path_variations1(self):\n \"\"\"Test ls with path ending in slash\"\"\"\n result = run(\"ls\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test/\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--database=/tmp/complex.db', '/tmp/complex_test/'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_over_50.py:22: AssertionError"}, "63ece4f28ebd/tests.test_over_50.TestMore.test_json_minsize_variations": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--min_size=5', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode", "text": "self = \n\n def test_json_minsize_variations(self):\n \"\"\"Test JSON with various min sizes\"\"\"\n for size in [5, 50, 500]:\n result = run(\"json\", f\"--min_size={size}\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'json', '--min_size=5', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\nDatabase not found\\n').returncode\n\ntests/test_over_50.py:39: AssertionError"}, "63ece4f28ebd/tests.test_recursive_structures.TestRecursiveJson.test_json_recursive_structure": {"message": "Complex test database /tmp/complex.db does not exist", "text": "/workspace/eval/tests/test_recursive_structures.py:24: Complex test database /tmp/complex.db does not exist"}, "63ece4f28ebd/tests.test_recursive_structures.TestRecursiveJson.test_json_with_subdirectory": {"message": "Complex test database /tmp/complex.db does not exist", "text": "/workspace/eval/tests/test_recursive_structures.py:33: Complex test database /tmp/complex.db does not exist"}, "63ece4f28ebd/tests.test_recursive_structures.TestRecursiveJson.test_json_exclude_files_with_dirs": {"message": "Complex test database /tmp/complex.db does not exist", "text": "/workspace/eval/tests/test_recursive_structures.py:40: Complex test database /tmp/complex.db does not exist"}, "63ece4f28ebd/tests.test_recursive_structures.TestRecursiveXml.test_xml_exclude_files_with_dirs": {"message": "Complex test database /tmp/complex.db does not exist", "text": "/workspace/eval/tests/test_recursive_structures.py:68: Complex test database /tmp/complex.db does not exist"}, "63ece4f28ebd/tests.test_recursive_structures.TestRecursiveXml.test_xml_recursive_structure": {"message": "Complex test database /tmp/complex.db does not exist", "text": "/workspace/eval/tests/test_recursive_structures.py:52: Complex test database /tmp/complex.db does not exist"}, "63ece4f28ebd/tests.test_recursive_structures.TestRecursiveLs.test_ls_recursive_nested": {"message": "Complex test database /tmp/complex.db does not exist", "text": "/workspace/eval/tests/test_recursive_structures.py:80: Complex test database /tmp/complex.db does not exist"}, "63ece4f28ebd/tests.test_recursive_structures.TestRecursiveXml.test_xml_with_subdirectory": {"message": "Complex test database /tmp/complex.db does not exist", "text": "/workspace/eval/tests/test_recursive_structures.py:61: Complex test database /tmp/complex.db does not exist"}, "63ece4f28ebd/tests.test_recursive_structures.TestRecursiveLs.test_ls_recursive_with_levels_1": {"message": "Complex test database /tmp/complex.db does not exist", "text": "/workspace/eval/tests/test_recursive_structures.py:89: Complex test database /tmp/complex.db does not exist"}, "63ece4f28ebd/tests.test_recursive_structures.TestGraphWithNestedDirs.test_graph_nested_structure": {"message": "Complex test database /tmp/complex.db does not exist", "text": "/workspace/eval/tests/test_recursive_structures.py:107: Complex test database /tmp/complex.db does not exist"}, "63ece4f28ebd/tests.test_recursive_structures.TestRecursiveLs.test_ls_recursive_with_levels_2": {"message": "Complex test database /tmp/complex.db does not exist", "text": "/workspace/eval/tests/test_recursive_structures.py:97: Complex test database /tmp/complex.db does not exist"}, "63ece4f28ebd/tests.test_recursive_structures.TestGraphWithNestedDirs.test_graph_nested_svg": {"message": "Complex test database /tmp/complex.db does not exist", "text": "/workspace/eval/tests/test_recursive_structures.py:115: Complex test database /tmp/complex.db does not exist"}, "63ece4f28ebd/tests.test_recursive_structures.TestGraphWithNestedDirs.test_graph_nested_with_levels": {"message": "Complex test database /tmp/complex.db does not exist", "text": "/workspace/eval/tests/test_recursive_structures.py:125: Complex test database /tmp/complex.db does not exist"}, "63ece4f28ebd/tests.test_recursive_structures.TestHistogramWithComplexDb.test_histogram_complex_structure": {"message": "Complex test database /tmp/complex.db does not exist", "text": "/workspace/eval/tests/test_recursive_structures.py:147: Complex test database /tmp/complex.db does not exist"}, "63ece4f28ebd/tests.test_recursive_structures.TestInfoWithComplexDb.test_info_shows_all_paths": {"message": "Complex test database /tmp/complex.db does not exist", "text": "/workspace/eval/tests/test_recursive_structures.py:135: Complex test database /tmp/complex.db does not exist"}, "63ece4f28ebd/tests.test_recursive_structures.TestCgiWithComplexDb.test_cgi_complex_structure": {"message": "Complex test database /tmp/complex.db does not exist", "text": "/workspace/eval/tests/test_recursive_structures.py:160: Complex test database /tmp/complex.db does not exist"}, "63ece4f28ebd/tests.test_coverage_targeted.TestManualCommand.test_manual_command_exists": {"message": "assert b'### Global options' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\n + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout", "text": "self = \n\n def test_manual_command_exists(self):\n \"\"\"Test manual command generates documentation.\"\"\"\n result = run(\"manual\")\n assert result.returncode == 0\n> assert b\"### Global options\" in result.stdout\nE assert b'### Global options' in b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\"\nE + where b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\" = CompletedProcess(args=['/workspace/executable', 'manual'], returncode=0, stdout=b\"usage: duc [options] [args]\\n\\nAvailable subcommands:\\n\\n help : Show help\\n histogram : Dump histogram of file sizes found.\\n index : Scan the filesystem and generate the Duc index\\n info : Dump database info\\n ls : List sizes of directory\\n topn : Dump N largest files in DB.\\n xml : Dump XML output\\n json : Dump JSON output\\n graph : Generate a sunburst graph for a given path\\n cgi : CGI interface wrapper\\n gui : Interactive X11 graphical interface\\n ui : Interactive ncurses user interface\\n\\nGlobal options:\\n --debug increase verbosity to debug level\\n -h, --help show help\\n -q, --quiet quiet mode, do not print any warning\\n -v, --verbose increase verbosity\\n --version output version information and exit\\n\\nUse 'duc help ' or 'duc -h' for a complete list of all\\noptions and detailed description of the subcommand.\\n\\nUse 'duc help --all' for a complete list of all options for all subcommands.\\n\", stderr=b'').stdout\n\ntests/test_coverage_targeted.py:16: AssertionError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_help_output": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_help_output(self):\n \"\"\"Test main help command.\"\"\"\n> result = run(\"--help\")\n\ntests/test_streamlined.py:36: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_version_output": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_version_output(self):\n \"\"\"Test version command output format.\"\"\"\n> result = run(\"--version\")\n\ntests/test_streamlined.py:27: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', '--version'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_index_help": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_index_help(self):\n \"\"\"Test index command help.\"\"\"\n> result = run(\"index\", \"--help\")\n\ntests/test_streamlined.py:61: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_quick_database_ops.TestQuickOps.test_xml_generates_xml": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_xml_generates_xml(self):\n \"\"\"Test xml generates valid xml.\"\"\"\n> dbfile, testdir, tmpdir = create_tiny_db()\n\ntests/test_quick_database_ops.py:60: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_quick_database_ops.py:24: in create_tiny_db\n result = run(\"index\", f\"--database={dbfile}\", str(testdir))\ntests/test_quick_database_ops.py:12: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--database=/tmp/tmpckk8xxv1/d.db', '/tmp/tmpckk8xxv1/t']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None, env = None, startupinfo = None, creationflags = 0, shell = False\np2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16\nerrwrite = 17, restore_signals = True, gid = None, gids = None, uid = None\numask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_quick_database_ops.TestQuickOps.test_info_shows_data": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_info_shows_data(self):\n \"\"\"Test info shows database info.\"\"\"\n> dbfile, testdir, tmpdir = create_tiny_db()\n\ntests/test_quick_database_ops.py:47: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_quick_database_ops.py:24: in create_tiny_db\n result = run(\"index\", f\"--database={dbfile}\", str(testdir))\ntests/test_quick_database_ops.py:12: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--database=/tmp/tmphtdppd8o/d.db', '/tmp/tmphtdppd8o/t']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None, env = None, startupinfo = None, creationflags = 0, shell = False\np2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16\nerrwrite = 17, restore_signals = True, gid = None, gids = None, uid = None\numask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_reach_50.TestLsMaxOptions.test_ls_all_options_combo1": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-b', '-a', '-F', '-c', '-g', '-R', '-n', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_all_options_combo1(self):\n \"\"\"Test ls with many options combo 1\"\"\"\n result = run(\"ls\", \"-b\", \"-a\", \"-F\", \"-c\", \"-g\", \"-R\", \"-n\",\n f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '-b', '-a', '-F', '-c', '-g', '-R', '-n', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_reach_50.py:22: AssertionError"}, "63ece4f28ebd/tests.test_reach_50.TestLsMaxOptions.test_ls_full_path_name_sort_levels": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--full-path', '--name-sort', '--levels=3', '-R', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_full_path_name_sort_levels(self):\n \"\"\"Test ls with full-path, name-sort, and levels\"\"\"\n result = run(\"ls\", \"--full-path\", \"--name-sort\", \"--levels=3\", \"-R\",\n f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--full-path', '--name-sort', '--levels=3', '-R', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_reach_50.py:35: AssertionError"}, "63ece4f28ebd/tests.test_over_50.TestMore.test_ls_with_path_variations2": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--database=/tmp/complex.db', '/tmp/complex_test/subdir1/'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_with_path_variations2(self):\n \"\"\"Test ls subdir\"\"\"\n result = run(\"ls\", f\"--database={COMPLEX_DB}\", \"/tmp/complex_test/subdir1/\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--database=/tmp/complex.db', '/tmp/complex_test/subdir1/'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_over_50.py:27: AssertionError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_topn_help": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_topn_help(self):\n \"\"\"Test topn command help.\"\"\"\n> result = run(\"topn\", \"--help\")\n\ntests/test_streamlined.py:94: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'topn', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_manual_subcommand": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_manual_subcommand(self):\n \"\"\"Test the hidden manual subcommand.\"\"\"\n> result = run(\"manual\")\n\ntests/test_streamlined.py:54: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'manual'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_help_all": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_help_all(self):\n \"\"\"Test help --all command.\"\"\"\n> result = run(\"help\", \"--all\")\n\ntests/test_streamlined.py:46: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'help', '--all'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_graph_help": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_graph_help(self):\n \"\"\"Test graph command help.\"\"\"\n> result = run(\"graph\", \"--help\")\n\ntests/test_streamlined.py:117: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_quick_database_ops.TestQuickOps.test_json_generates_json": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_json_generates_json(self):\n \"\"\"Test json generates valid json.\"\"\"\n> dbfile, testdir, tmpdir = create_tiny_db()\n\ntests/test_quick_database_ops.py:73: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_quick_database_ops.py:24: in create_tiny_db\n result = run(\"index\", f\"--database={dbfile}\", str(testdir))\ntests/test_quick_database_ops.py:12: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--database=/tmp/tmp2ucrj2r7/d.db', '/tmp/tmp2ucrj2r7/t']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None, env = None, startupinfo = None, creationflags = 0, shell = False\np2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16\nerrwrite = 17, restore_signals = True, gid = None, gids = None, uid = None\numask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_ls_help": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_ls_help(self):\n \"\"\"Test ls command help.\"\"\"\n> result = run(\"ls\", \"--help\")\n\ntests/test_streamlined.py:70: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ls', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_histogram_help": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_histogram_help(self):\n \"\"\"Test histogram command help.\"\"\"\n> result = run(\"histogram\", \"--help\")\n\ntests/test_streamlined.py:78: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'histogram', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_reach_50.TestLsMaxOptions.test_ls_all_options_combo2": {"message": "AssertionError: assert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--bytes', '--apparent', '--classify', '--graph', '--ascii', '--count', '--dirs-only', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode", "text": "self = \n\n def test_ls_all_options_combo2(self):\n \"\"\"Test ls with many options combo 2\"\"\"\n result = run(\"ls\", \"--bytes\", \"--apparent\", \"--classify\", \"--graph\",\n \"--ascii\", \"--count\", \"--dirs-only\",\n f\"--database={COMPLEX_DB}\", \"/tmp/complex_test\")\n> assert result.returncode == 0\nE AssertionError: assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'ls', '--bytes', '--apparent', '--classify', '--graph', '--ascii', '--count', '--dirs-only', '--database=/tmp/complex.db', '/tmp/complex_test'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/complex.db - Database not found\\n').returncode\n\ntests/test_reach_50.py:29: AssertionError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_index_dry_run": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_index_dry_run(self):\n \"\"\"Test index with --dry-run flag.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n testdir = Path(tmpdir) / \"test\"\n testdir.mkdir()\n (testdir / \"file.txt\").write_text(\"test\")\n> result = run(\"index\", \"--dry-run\", str(testdir))\n\ntests/test_streamlined.py:166: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--dry-run', '/tmp/tmp1ynhhymk/test']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_info_help": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_info_help(self):\n \"\"\"Test info command help.\"\"\"\n> result = run(\"info\", \"--help\")\n\ntests/test_streamlined.py:86: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'info', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_json_help": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_json_help(self):\n \"\"\"Test json command help.\"\"\"\n> result = run(\"json\", \"--help\")\n\ntests/test_streamlined.py:101: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'json', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_xml_help": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_xml_help(self):\n \"\"\"Test xml command help.\"\"\"\n> result = run(\"xml\", \"--help\")\n\ntests/test_streamlined.py:109: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'xml', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_ui_help": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_ui_help(self):\n \"\"\"Test ui command help.\"\"\"\n> result = run(\"ui\", \"--help\")\n\ntests/test_streamlined.py:133: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ui', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_gui_help": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_gui_help(self):\n \"\"\"Test gui command help.\"\"\"\n> result = run(\"gui\", \"--help\")\n\ntests/test_streamlined.py:125: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'gui', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_quick_database_ops.TestQuickOps.test_histogram_shows_distribution": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_histogram_shows_distribution(self):\n \"\"\"Test histogram shows data.\"\"\"\n> dbfile, testdir, tmpdir = create_tiny_db()\n\ntests/test_quick_database_ops.py:86: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_quick_database_ops.py:24: in create_tiny_db\n result = run(\"index\", f\"--database={dbfile}\", str(testdir))\ntests/test_quick_database_ops.py:12: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--database=/tmp/tmponz4tp2h/d.db', '/tmp/tmponz4tp2h/t']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None, env = None, startupinfo = None, creationflags = 0, shell = False\np2cread = -1, p2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16\nerrwrite = 17, restore_signals = True, gid = None, gids = None, uid = None\numask = -1, start_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_database_error_missing": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_database_error_missing(self):\n \"\"\"Test that missing database produces correct error.\"\"\"\n> result = run(\"ls\", \"--database=/nonexistent/path.db\")\n\ntests/test_streamlined.py:149: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ls', '--database=/nonexistent/path.db']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_cgi_help": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_cgi_help(self):\n \"\"\"Test cgi command help.\"\"\"\n> result = run(\"cgi\", \"--help\")\n\ntests/test_streamlined.py:141: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'cgi', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_database_error_directory": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_database_error_directory(self):\n \"\"\"Test that using a directory as database produces error.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n> result = run(\"ls\", f\"--database={tmpdir}\")\n\ntests/test_streamlined.py:156: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ls', '--database=/tmp/tmpocoiuzrf']\nexecutable = b'./executable', preexec_fn = None, close_fds = True, pass_fds = ()\ncwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_verbose_flag": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_verbose_flag(self):\n \"\"\"Test that verbose flag is recognized.\"\"\"\n> result = run(\"--verbose\", \"--help\")\n\ntests/test_streamlined.py:172: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', '--verbose', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_debug_flag": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_debug_flag(self):\n \"\"\"Test that debug flag is recognized.\"\"\"\n> result = run(\"--debug\", \"--help\")\n\ntests/test_streamlined.py:178: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', '--debug', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_quiet_flag": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_quiet_flag(self):\n \"\"\"Test that quiet flag is recognized.\"\"\"\n> result = run(\"--quiet\", \"--help\")\n\ntests/test_streamlined.py:184: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', '--quiet', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_invalid_command": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_invalid_command(self):\n \"\"\"Test invalid subcommand.\"\"\"\n> result = run(\"invalid_command_xyz\")\n\ntests/test_streamlined.py:190: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'invalid_command_xyz'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_index_exclude_pattern": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_index_exclude_pattern(self):\n \"\"\"Test index with exclude pattern (help text validation).\"\"\"\n> result = run(\"index\", \"--help\")\n\ntests/test_streamlined.py:196: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_index_max_depth": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_index_max_depth(self):\n \"\"\"Test index with max-depth option (help text validation).\"\"\"\n> result = run(\"index\", \"--help\")\n\ntests/test_streamlined.py:202: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'index', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_ls_levels_option": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_ls_levels_option(self):\n \"\"\"Test ls levels option (help text validation).\"\"\"\n> result = run(\"ls\", \"--help\")\n\ntests/test_streamlined.py:208: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ls', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_graph_palette_option": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_graph_palette_option(self):\n \"\"\"Test graph palette option (help text validation).\"\"\"\n> result = run(\"graph\", \"--help\")\n\ntests/test_streamlined.py:214: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'graph', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_cgi_mode_not_activated": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_cgi_mode_not_activated(self):\n \"\"\"Test that cgi command runs but indicates it needs CGI environment.\"\"\"\n> result = run(\"cgi\")\n\ntests/test_streamlined.py:221: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'cgi'], executable = b'./executable', preexec_fn = None\nclose_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_environment_variable_handling": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_environment_variable_handling(self):\n \"\"\"Test DUC_DATABASE environment variable.\"\"\"\n> result = run(\"ls\", \"--help\", env={\"DUC_DATABASE\": \"/tmp/test.db\"})\n\ntests/test_streamlined.py:227: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', 'ls', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'DUC_DATABASE': '/tmp/test.db', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_xdg_cache_home": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_xdg_cache_home(self):\n \"\"\"Test XDG_CACHE_HOME environment variable.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n> result = run(\"--help\", env={\"XDG_CACHE_HOME\": tmpdir})\n\ntests/test_streamlined.py:234: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "63ece4f28ebd/tests.test_streamlined.TestNonDatabaseFeatures.test_home_directory_fallback": {"message": "FileNotFoundError: [Errno 2] No such file or directory: './executable'", "text": "self = \n\n def test_home_directory_fallback(self):\n \"\"\"Test HOME environment variable fallback.\"\"\"\n with tempfile.TemporaryDirectory() as tmpdir:\n> result = run(\"--help\", env={\"HOME\": tmpdir})\n\ntests/test_streamlined.py:241: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntests/test_streamlined.py:16: in run\n return subprocess.run(\n/usr/lib/python3.10/subprocess.py:503: in run\n with Popen(*popenargs, **kwargs) as process:\n/usr/lib/python3.10/subprocess.py:971: in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = \nargs = ['./executable', '--help'], executable = b'./executable'\npreexec_fn = None, close_fds = True, pass_fds = (), cwd = None\nenv = {'CARGO_HOME': '/usr/local/cargo', 'COLUMNS': '80', 'DEBIAN_FRONTEND': 'noninteractive', 'GOMODCACHE': '/usr/local/go/mod-cache', ...}\nstartupinfo = None, creationflags = 0, shell = False, p2cread = -1\np2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = 16, errwrite = 17\nrestore_signals = True, gid = None, gids = None, uid = None, umask = -1\nstart_new_session = False\n\n def _execute_child(self, args, executable, preexec_fn, close_fds,\n pass_fds, cwd, env,\n startupinfo, creationflags, shell,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite,\n restore_signals,\n gid, gids, uid, umask,\n start_new_session):\n \"\"\"Execute program (POSIX version)\"\"\"\n \n if isinstance(args, (str, bytes)):\n args = [args]\n elif isinstance(args, os.PathLike):\n if shell:\n raise TypeError('path-like args is not allowed when '\n 'shell is true')\n args = [args]\n else:\n args = list(args)\n \n if shell:\n # On Android the default shell is at '/system/bin/sh'.\n unix_shell = ('/system/bin/sh' if\n hasattr(sys, 'getandroidapilevel') else '/bin/sh')\n args = [unix_shell, \"-c\"] + args\n if executable:\n args[0] = executable\n \n if executable is None:\n executable = args[0]\n \n sys.audit(\"subprocess.Popen\", executable, args, cwd, env)\n \n if (_USE_POSIX_SPAWN\n and os.path.dirname(executable)\n and preexec_fn is None\n and not close_fds\n and not pass_fds\n and cwd is None\n and (p2cread == -1 or p2cread > 2)\n and (c2pwrite == -1 or c2pwrite > 2)\n and (errwrite == -1 or errwrite > 2)\n and not start_new_session\n and gid is None\n and gids is None\n and uid is None\n and umask < 0):\n self._posix_spawn(args, executable, env, restore_signals,\n p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n return\n \n orig_executable = executable\n \n # For transferring possible exec failure from child to parent.\n # Data format: \"exception name:hex errno:description\"\n # Pickle is not used; it is complex and involves memory allocation.\n errpipe_read, errpipe_write = os.pipe()\n # errpipe_write must not be in the standard io 0, 1, or 2 fd range.\n low_fds_to_close = []\n while errpipe_write < 3:\n low_fds_to_close.append(errpipe_write)\n errpipe_write = os.dup(errpipe_write)\n for low_fd in low_fds_to_close:\n os.close(low_fd)\n try:\n try:\n # We must avoid complex work that could involve\n # malloc or free in the child process to avoid\n # potential deadlocks, thus we do all this here.\n # and pass it to fork_exec()\n \n if env is not None:\n env_list = []\n for k, v in env.items():\n k = os.fsencode(k)\n if b'=' in k:\n raise ValueError(\"illegal environment variable name\")\n env_list.append(k + b'=' + os.fsencode(v))\n else:\n env_list = None # Use execv instead of execve.\n executable = os.fsencode(executable)\n if os.path.dirname(executable):\n executable_list = (executable,)\n else:\n # This matches the behavior of os._execvpe().\n executable_list = tuple(\n os.path.join(os.fsencode(dir), executable)\n for dir in os.get_exec_path(env))\n fds_to_keep = set(pass_fds)\n fds_to_keep.add(errpipe_write)\n self.pid = _posixsubprocess.fork_exec(\n args, executable_list,\n close_fds, tuple(sorted(map(int, fds_to_keep))),\n cwd, env_list,\n p2cread, p2cwrite, c2pread, c2pwrite,\n errread, errwrite,\n errpipe_read, errpipe_write,\n restore_signals, start_new_session,\n gid, gids, uid, umask,\n preexec_fn)\n self._child_created = True\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_write)\n \n self._close_pipe_fds(p2cread, p2cwrite,\n c2pread, c2pwrite,\n errread, errwrite)\n \n # Wait for exec to fail or succeed; possibly raising an\n # exception (limited in size)\n errpipe_data = bytearray()\n while True:\n part = os.read(errpipe_read, 50000)\n errpipe_data += part\n if not part or len(errpipe_data) > 50000:\n break\n finally:\n # be sure the FD is closed no matter what\n os.close(errpipe_read)\n \n if errpipe_data:\n try:\n pid, sts = os.waitpid(self.pid, 0)\n if pid == self.pid:\n self._handle_exitstatus(sts)\n else:\n self.returncode = sys.maxsize\n except ChildProcessError:\n pass\n \n try:\n exception_name, hex_errno, err_msg = (\n errpipe_data.split(b':', 2))\n # The encoding here should match the encoding\n # written in by the subprocess implementations\n # like _posixsubprocess\n err_msg = err_msg.decode()\n except ValueError:\n exception_name = b'SubprocessError'\n hex_errno = b'0'\n err_msg = 'Bad exception data from child: {!r}'.format(\n bytes(errpipe_data))\n child_exception_type = getattr(\n builtins, exception_name.decode('ascii'),\n SubprocessError)\n if issubclass(child_exception_type, OSError) and hex_errno:\n errno_num = int(hex_errno, 16)\n child_exec_never_called = (err_msg == \"noexec\")\n if child_exec_never_called:\n err_msg = \"\"\n # The error must be from chdir(cwd).\n err_filename = cwd\n else:\n err_filename = orig_executable\n if errno_num != 0:\n err_msg = os.strerror(errno_num)\n> raise child_exception_type(errno_num, err_msg, err_filename)\nE FileNotFoundError: [Errno 2] No such file or directory: './executable'\n\n/usr/lib/python3.10/subprocess.py:1863: FileNotFoundError"}, "b591f1a07fe0/tests.test_cgi.test_cgi_nonexistent_path": {"message": "assert 0 == 1\n + where 0 = CompletedProcess(args=['/workspace/executable', 'cgi', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_cgi_nonexistent_path2/test.db'], returncode=0, stdout='Content-Type: text/html\\n\\n\\n\\n \\n\\n\\n\\n\\n
\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
PathSizeFilesDirectoriesDateTime
/tmp/pytest-of-root/pytest-0/popen-gw1/test_cgi_nonexistent_path2/tree4.0K112026-10-0905:33:15
\\n
\\n
\\n\\n\\n', stderr='').returncode", "text": "/workspace/eval/tests/test_cgi.py:191: in test_cgi_nonexistent_path\n assert result.returncode == 1\nE assert 0 == 1\nE + where 0 = CompletedProcess(args=['/workspace/executable', 'cgi', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_cgi_nonexistent_path2/test.db'], returncode=0, stdout='Content-Type: text/html\\n\\n\\n\\n \\n\\n\\n\\n\\n
\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
PathSizeFilesDirectoriesDateTime
/tmp/pytest-of-root/pytest-0/popen-gw1/test_cgi_nonexistent_path2/tree4.0K112026-10-0905:33:15
\\n
\\n
\\n\\n\\n', stderr='').returncode"}, "b591f1a07fe0/tests.test_cgi.test_cgi_custom_css_url": {"message": "assert None == 'text/css'\n + where None = get('type')\n + where get = .get", "text": "/workspace/eval/tests/test_cgi.py:145: in test_cgi_custom_css_url\n assert link.get(\"type\") == \"text/css\"\nE assert None == 'text/css'\nE + where None = get('type')\nE + where get = .get"}, "b591f1a07fe0/tests.test_index.test_index_topn_exceeds_max_limit": {"message": "AssertionError: Expected crash with -6, got: 0\nassert 0 == -6\n + where 0 = CompletedProcess(args=['/workspace/executable', 'index', '-v', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_li2/test.db', '-T', '2000', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_li2/tree'], returncode=0, stdout='', stderr='Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_li2/test.db\"\\nIndexed 1 files and 1 directories, (7B apparent, 4.0KB actual) in 0.00 secs.\\n').returncode", "text": "/workspace/eval/tests/test_index.py:850: in test_index_topn_exceeds_max_limit\n assert result.returncode == -6, f\"Expected crash with -6, got: {result.returncode}\"\nE AssertionError: Expected crash with -6, got: 0\nE assert 0 == -6\nE + where 0 = CompletedProcess(args=['/workspace/executable', 'index', '-v', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_li2/test.db', '-T', '2000', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_li2/tree'], returncode=0, stdout='', stderr='Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_li2/test.db\"\\nIndexed 1 files and 1 directories, (7B apparent, 4.0KB actual) in 0.00 secs.\\n').returncode"}, "b591f1a07fe0/tests.test_index.test_index_force_flag_overwrites_corrupted_db": {"message": "AssertionError: Index with --force should succeed: Found big filesystem\n Writing to database \"/tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db\"\n Error opening: /tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db - Database corrupt and not usable\n Database corrupt and not usable\n \nassert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'index', '-v', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db', '-f', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/tree'], returncode=1, stdout='', stderr='Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db\"\\nError opening: /tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db - Database corrupt and not usable\\nDatabase corrupt and not usable\\n').returncode", "text": "/workspace/eval/tests/test_index.py:581: in test_index_force_flag_overwrites_corrupted_db\n assert result.returncode == 0, f\"Index with --force should succeed: {result.stderr}\"\nE AssertionError: Index with --force should succeed: Found big filesystem\nE Writing to database \"/tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db\"\nE Error opening: /tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db - Database corrupt and not usable\nE Database corrupt and not usable\nE \nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'index', '-v', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db', '-f', '/tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/tree'], returncode=1, stdout='', stderr='Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db\"\\nError opening: /tmp/pytest-of-root/pytest-0/popen-gw6/test_index_force_flag_overwrit2/test.db - Database corrupt and not usable\\nDatabase corrupt and not usable\\n').returncode"}, "b591f1a07fe0/tests.test_cgi.test_cgi_tooltip_command": {"message": "AssertionError: assert 'Content-Type: text/html' in 'Content-Type: text/plain\\n\\nbigfile\\n100.0K\\n'\n + where 'Content-Type: text/plain\\n\\nbigfile\\n100.0K\\n' = CompletedProcess(args=['/workspace/executable', 'cgi', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_cgi_tooltip_command2/test.db'], returncode=0, stdout='Content-Type: text/plain\\n\\nbigfile\\n100.0K\\n', stderr='').stdout", "text": "/workspace/eval/tests/test_cgi.py:224: in test_cgi_tooltip_command\n assert \"Content-Type: text/html\" in result.stdout\nE AssertionError: assert 'Content-Type: text/html' in 'Content-Type: text/plain\\n\\nbigfile\\n100.0K\\n'\nE + where 'Content-Type: text/plain\\n\\nbigfile\\n100.0K\\n' = CompletedProcess(args=['/workspace/executable', 'cgi', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw1/test_cgi_tooltip_command2/test.db'], returncode=0, stdout='Content-Type: text/plain\\n\\nbigfile\\n100.0K\\n', stderr='').stdout"}, "b591f1a07fe0/tests.test_cgi.test_cgi_nonexistent_database": {"message": "AssertionError: assert 'Content-Type: text/plain' in ''\n + where '' = CompletedProcess(args=['/workspace/executable', 'cgi', '-d', '/nonexistent/database.db'], returncode=1, stdout='', stderr='Error opening: /nonexistent/database.db - Database not found\\nDatabase not found\\n').stdout", "text": "/workspace/eval/tests/test_cgi.py:168: in test_cgi_nonexistent_database\n assert \"Content-Type: text/plain\" in result.stdout\nE AssertionError: assert 'Content-Type: text/plain' in ''\nE + where '' = CompletedProcess(args=['/workspace/executable', 'cgi', '-d', '/nonexistent/database.db'], returncode=1, stdout='', stderr='Error opening: /nonexistent/database.db - Database not found\\nDatabase not found\\n').stdout"}, "b591f1a07fe0/tests.test_ls.test_recursive_dirs_only_filter": {"message": "AssertionError: assert '800.0K \u2570\u252c\u2500 a...00.0K \u251c\u2500 c\\n' == '800.0K \u2570\u252c\u2500 a...00.0K \u2570\u2500 c\\n'\n \n 800.0K \u2570\u252c\u2500 a\n 600.0K \u251c\u2500 b\n - 100.0K \u2570\u2500 c\n ? ^\n + 100.0K \u251c\u2500 c\n ? ^", "text": "/workspace/eval/tests/test_ls.py:776: in test_recursive_dirs_only_filter\n assert result.stdout == (RESOURCES / \"recursive_dirs_only.golden\").read_text()\nE AssertionError: assert '800.0K \u2570\u252c\u2500 a...00.0K \u251c\u2500 c\\n' == '800.0K \u2570\u252c\u2500 a...00.0K \u2570\u2500 c\\n'\nE \nE 800.0K \u2570\u252c\u2500 a\nE 600.0K \u251c\u2500 b\nE - 100.0K \u2570\u2500 c\nE ? ^\nE + 100.0K \u251c\u2500 c\nE ? ^"}, "b591f1a07fe0/tests.test_index.test_index_topn_exceeds_max_shows_warning": {"message": "AssertionError: Missing topN max warning in stderr\nassert 'Cannot store more than 1000 topN files' in 'Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n'\n + where 'Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n' = CompletedProcess(args=['/workspace/executable', 'index', '-v', '-T', '99999', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/test.db', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/tree'], returncode=0, stdout='', stderr='Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n').stderr", "text": "/workspace/eval/tests/test_index.py:906: in test_index_topn_exceeds_max_shows_warning\n assert \"Cannot store more than 1000 topN files\" in result.stderr, \\\nE AssertionError: Missing topN max warning in stderr\nE assert 'Cannot store more than 1000 topN files' in 'Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n'\nE + where 'Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n' = CompletedProcess(args=['/workspace/executable', 'index', '-v', '-T', '99999', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/test.db', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/tree'], returncode=0, stdout='', stderr='Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_topn_exceeds_max_sh2/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n').stderr"}, "b591f1a07fe0/tests.test_ls.test_color_with_graph_recursive_ascii": {"message": "AssertionError: assert '\\x1b[31m800....+++\\x1b[0m]\\n' == '\\x1b[31m800....31m\\x1b[0m]\\n'\n \n - #x1B[31m800.0K#x1B[0m `+- a [#x1B[31m#x1B[0m]\n - #x1B[31m800.0K#x1B[0m | `- f1.bin [#x1B[31m#x1B[0m]\n - #x1B[31m600.0K#x1B[0m |- b [#x1B[31m#x1B[0m]\n - #x1B[31m600.0K#x1B[0m | `- f2.bin [#x1B[31m#x1B[0m]\n - #x1B[33m100.0K#x1B[0m `- c [#x1B[33m#x1B[0m]\n - #x1B[31m100.0K#x1B[0m `- f3.bin [#x1B[31m#x1B[0m]...\n \n ...Full output truncated (6 lines hidden), use '-vv' to show", "text": "/workspace/eval/tests/test_ls.py:734: in test_color_with_graph_recursive_ascii\n assert output == (RESOURCES / \"color_graph_recursive_ascii.golden\").read_text()\nE AssertionError: assert '\\x1b[31m800....+++\\x1b[0m]\\n' == '\\x1b[31m800....31m\\x1b[0m]\\n'\nE \nE - #x1B[31m800.0K#x1B[0m `+- a [#x1B[31m#x1B[0m]\nE - #x1B[31m800.0K#x1B[0m | `- f1.bin [#x1B[31m#x1B[0m]\nE - #x1B[31m600.0K#x1B[0m |- b [#x1B[31m#x1B[0m]\nE - #x1B[31m600.0K#x1B[0m | `- f2.bin [#x1B[31m#x1B[0m]\nE - #x1B[33m100.0K#x1B[0m `- c [#x1B[33m#x1B[0m]\nE - #x1B[31m100.0K#x1B[0m `- f3.bin [#x1B[31m#x1B[0m]...\nE \nE ...Full output truncated (6 lines hidden), use '-vv' to show"}, "b591f1a07fe0/tests.test_cgi.test_cgi_list_option": {"message": "AssertionError: assert 'Name' == 'Filename'\n \n - Filename\n + Name", "text": "/workspace/eval/tests/test_cgi.py:307: in test_cgi_list_option\n assert headers[0] == \"Filename\"\nE AssertionError: assert 'Name' == 'Filename'\nE \nE - Filename\nE + Name"}, "b591f1a07fe0/tests.test_seed.test_version_command": {"message": "AssertionError: Backend missing\nassert 'tkrzw' in 'duc version: 1.5.0-rc1\\noptions: cairo x11 ui sqlite3\\n'\n + where 'duc version: 1.5.0-rc1\\noptions: cairo x11 ui sqlite3\\n' = CompletedProcess(args=['/workspace/executable', '--version'], returncode=0, stdout='duc version: 1.5.0-rc1\\noptions: cairo x11 ui sqlite3\\n', stderr='').stdout", "text": "/workspace/eval/tests/test_seed.py:39: in test_version_command\n assert \"tkrzw\" in result.stdout, \"Backend missing\"\nE AssertionError: Backend missing\nE assert 'tkrzw' in 'duc version: 1.5.0-rc1\\noptions: cairo x11 ui sqlite3\\n'\nE + where 'duc version: 1.5.0-rc1\\noptions: cairo x11 ui sqlite3\\n' = CompletedProcess(args=['/workspace/executable', '--version'], returncode=0, stdout='duc version: 1.5.0-rc1\\noptions: cairo x11 ui sqlite3\\n', stderr='').stdout"}, "b591f1a07fe0/tests.test_index.test_index_buckets_exceeds_max_shows_warning": {"message": "AssertionError: Missing buckets max warning in stderr\nassert 'Cannot use more than 512 histogram buckets.' in 'Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n'\n + where 'Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n' = CompletedProcess(args=['/workspace/executable', 'index', '-v', '-B', '99999', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/test.db', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/tree'], returncode=0, stdout='', stderr='Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n').stderr", "text": "/workspace/eval/tests/test_index.py:933: in test_index_buckets_exceeds_max_shows_warning\n assert \"Cannot use more than 512 histogram buckets.\" in result.stderr, \\\nE AssertionError: Missing buckets max warning in stderr\nE assert 'Cannot use more than 512 histogram buckets.' in 'Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n'\nE + where 'Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n' = CompletedProcess(args=['/workspace/executable', 'index', '-v', '-B', '99999', '-d', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/test.db', '/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/tree'], returncode=0, stdout='', stderr='Found big filesystem\\nWriting to database \"/tmp/pytest-of-root/pytest-0/popen-gw9/test_index_buckets_exceeds_max3/test.db\"\\nIndexed 1 files and 1 directories, (4B apparent, 4.0KB actual) in 0.00 secs.\\n').stderr"}, "b591f1a07fe0/tests.test_ui.test_ui_basic_launch_and_display": {"message": "AssertionError: Size type not shown\nassert 'actual size' in ' /tmp/pytest-of-root/pytest-0/popen-gw2/test_ui_basic_launch_and_displ2/tree\\n 5.0M data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 4.0K docs/ [ ]\\n 4.0K src/ [ ]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 5.0MB in 6 files/directories\\n'", "text": "/workspace/eval/tests/test_ui.py:89: in test_ui_basic_launch_and_display\n assert \"actual size\" in screen, \"Size type not shown\"\nE AssertionError: Size type not shown\nE assert 'actual size' in ' /tmp/pytest-of-root/pytest-0/popen-gw2/test_ui_basic_launch_and_displ2/tree\\n 5.0M data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 4.0K docs/ [ ]\\n 4.0K src/ [ ]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 5.0MB in 6 files/directories\\n'"}, "b591f1a07fe0/tests.test_ui.test_ui_option_apparent": {"message": "AssertionError: Not starting in apparent size mode\nassert 'apparent size' in ' /tmp/pytest-of-root/pytest-0/popen-gw3/test_ui_option_apparent2/tree\\n 5.0M data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 8 docs/ [ ]\\n 5 src/ [ ]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 5.0MB in 6 files/directories\\n'", "text": "/workspace/eval/tests/test_ui.py:412: in test_ui_option_apparent\n assert \"apparent size\" in screen, \"Not starting in apparent size mode\"\nE AssertionError: Not starting in apparent size mode\nE assert 'apparent size' in ' /tmp/pytest-of-root/pytest-0/popen-gw3/test_ui_option_apparent2/tree\\n 5.0M data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 8 docs/ [ ]\\n 5 src/ [ ]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 5.0MB in 6 files/directories\\n'"}, "b591f1a07fe0/tests.test_ui.test_ui_toggle_bytes": {"message": "AssertionError: assert ' \\n ...directories\\n' == ' \\n ...arent size)\\n'\n \n - \n ? -\n + \n - 5242880 data/ [========================================]\n + 5242880 data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\n - 8 docs/ [ ]...\n \n ...Full output truncated (47 lines hidden), use '-vv' to show", "text": "/workspace/eval/tests/test_ui.py:285: in test_ui_toggle_bytes\n assert normalized_screen == golden\nE AssertionError: assert ' \\n ...directories\\n' == ' \\n ...arent size)\\n'\nE \nE - \nE ? -\nE + \nE - 5242880 data/ [========================================]\nE + 5242880 data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\nE - 8 docs/ [ ]...\nE \nE ...Full output truncated (47 lines hidden), use '-vv' to show"}, "b591f1a07fe0/tests.test_ui.test_ui_backspace_navigation": {"message": "AssertionError: assert ' \\n 5...directories\\n' == ' \\n ...ctual size)\\n'\n \n - \n ? -\n + \n - 5.0M data/ [========================================]\n - 4.0K docs/ [ ]\n - 4.0K src/ [ ]...\n \n ...Full output truncated (43 lines hidden), use '-vv' to show", "text": "/workspace/eval/tests/test_ui.py:196: in test_ui_backspace_navigation\n assert normalized_screen == golden\nE AssertionError: assert ' \\n 5...directories\\n' == ' \\n ...ctual size)\\n'\nE \nE - \nE ? -\nE + \nE - 5.0M data/ [========================================]\nE - 4.0K docs/ [ ]\nE - 4.0K src/ [ ]...\nE \nE ...Full output truncated (43 lines hidden), use '-vv' to show"}, "b591f1a07fe0/tests.test_ui.test_ui_navigation_down_and_enter": {"message": "AssertionError: Size type not shown in footer\nassert 'actual size' in ' /tmp/pytest-of-root/pytest-0/popen-gw5/test_ui_navigation_down_and_en2/tree/do\\n 4.0K readme.txt [+++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 4.0KB in 1 files/directories\\n'", "text": "/workspace/eval/tests/test_ui.py:147: in test_ui_navigation_down_and_enter\n assert \"actual size\" in screen, \"Size type not shown in footer\"\nE AssertionError: Size type not shown in footer\nE assert 'actual size' in ' /tmp/pytest-of-root/pytest-0/popen-gw5/test_ui_navigation_down_and_en2/tree/do\\n 4.0K readme.txt [+++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 4.0KB in 1 files/directories\\n'"}, "b591f1a07fe0/tests.test_ui.test_ui_toggle_count": {"message": "AssertionError: Not showing file counts\nassert 'Total 6 files' in ' /tmp/pytest-of-root/pytest-0/popen-gw7/test_ui_toggle_count2/tree\\n 2 data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 2 docs/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 2 src/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 6 in 6 files/directories\\n'", "text": "/workspace/eval/tests/test_ui.py:324: in test_ui_toggle_count\n assert \"Total 6 files\" in screen, \"Not showing file counts\"\nE AssertionError: Not showing file counts\nE assert 'Total 6 files' in ' /tmp/pytest-of-root/pytest-0/popen-gw7/test_ui_toggle_count2/tree\\n 2 data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 2 docs/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 2 src/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 6 in 6 files/directories\\n'"}, "b591f1a07fe0/tests.test_ui.test_ui_option_count": {"message": "AssertionError: Footer not showing file count mode\nassert 'Total 6 files' in ' /tmp/pytest-of-root/pytest-0/popen-gw0/test_ui_option_count2/tree\\n 2 data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 2 docs/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 2 src/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 6 in 6 files/directories\\n'", "text": "/workspace/eval/tests/test_ui.py:476: in test_ui_option_count\n assert \"Total 6 files\" in screen, \"Footer not showing file count mode\"\nE AssertionError: Footer not showing file count mode\nE assert 'Total 6 files' in ' /tmp/pytest-of-root/pytest-0/popen-gw0/test_ui_option_count2/tree\\n 2 data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 2 docs/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 2 src/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 6 in 6 files/directories\\n'"}, "b591f1a07fe0/tests.test_ui.test_ui_toggle_apparent_size": {"message": "AssertionError: Not in apparent size mode\nassert 'apparent size' in ' /tmp/pytest-of-root/pytest-0/popen-gw6/test_ui_toggle_apparent_size2/tree\\n 5.0M data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 8 docs/ [ ]\\n 5 src/ [ ]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 5.0MB in 6 files/directories\\n'", "text": "/workspace/eval/tests/test_ui.py:232: in test_ui_toggle_apparent_size\n assert \"apparent size\" in screen, \"Not in apparent size mode\"\nE AssertionError: Not in apparent size mode\nE assert 'apparent size' in ' /tmp/pytest-of-root/pytest-0/popen-gw6/test_ui_toggle_apparent_size2/tree\\n 5.0M data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]\\n 8 docs/ [ ]\\n 5 src/ [ ]\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nTotal 5.0MB in 6 files/directories\\n'"}, "b591f1a07fe0/tests.test_ui.test_ui_toggle_graph": {"message": "AssertionError: Graph bars still present\nassert '[' not in ' ...+++++++++++]'\n \n '[' is contained here:\n 2 data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\n ? +", "text": "/workspace/eval/tests/test_ui.py:376: in test_ui_toggle_graph\n assert '[' not in data_line, \"Graph bars still present\"\nE AssertionError: Graph bars still present\nE assert '[' not in ' ...+++++++++++]'\nE \nE '[' is contained here:\nE 2 data/ [++++++++++++++++++++++++++++++++++++++++++++++++++++++]\nE ? +"}, "f127ed85a1b5/eval.tests.test_config_env.test_home_dot_duc_db_backward_compat_is_preferred_and_warns": {"message": "AssertionError: assert 'Using old database' in 'Error opening: /tmp/duc-home-w2b4zr35/xdgcache/duc/duc.db - Database not found\\nDatabase not found\\n'", "text": "def test_home_dot_duc_db_backward_compat_is_preferred_and_warns():\n with TempHome() as th:\n # Create an old-style db file; duc should prefer it over XDG_CACHE_HOME.\n old_db = th.home / \".duc.db\"\n old_db.write_bytes(b\"not a real db\")\n \n r = run_duc(\"info\", env=th.env)\n assert r.returncode != 0\n err = (r.stdout + r.stderr).decode(errors=\"replace\")\n> assert \"Using old database\" in err\nE AssertionError: assert 'Using old database' in 'Error opening: /tmp/duc-home-w2b4zr35/xdgcache/duc/duc.db - Database not found\\nDatabase not found\\n'\n\neval/tests/test_config_env.py:147: AssertionError"}, "f127ed85a1b5/eval.tests.test_config_env.test_default_db_uses_xdg_cache_home_when_parent_exists": {"message": "AssertionError: ('', 'Error opening: /tmp/duc-home-8bo_n6jx/xdgcache/duc/duc.db - Database not found\n Database not found\n ')\nassert 1 == 0\n + where 1 = CompletedProcess(args=['/workspace/executable', 'index', '/tmp/duc-data-xx0k9g5m'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/duc-home-8bo_n6jx/xdgcache/duc/duc.db - Database not found\\nDatabase not found\\n').returncode", "text": "def test_default_db_uses_xdg_cache_home_when_parent_exists():\n with TempHome() as th:\n # duc does NOT create the parent directory for the db file itself;\n # it only mkdirs $XDG_CACHE_HOME/duc. So create XDG_CACHE_HOME first.\n Path(th.env[\"XDG_CACHE_HOME\"]).mkdir(parents=True)\n \n # Ensure indexing succeeds and creates the default db.\n with tempfile.TemporaryDirectory(prefix=\"duc-data-\") as td:\n make_tree(Path(td))\n r = run_duc(\"index\", td, env=th.env)\n> assert r.returncode == 0, (r.stdout.decode(), r.stderr.decode())\nE AssertionError: ('', 'Error opening: /tmp/duc-home-8bo_n6jx/xdgcache/duc/duc.db - Database not found\nE Database not found\nE ')\nE assert 1 == 0\nE + where 1 = CompletedProcess(args=['/workspace/executable', 'index', '/tmp/duc-data-xx0k9g5m'], returncode=1, stdout=b'', stderr=b'Error opening: /tmp/duc-home-8bo_n6jx/xdgcache/duc/duc.db - Database not found\\nDatabase not found\\n').returncode\n\neval/tests/test_config_env.py:66: AssertionError"}, "5d62c98c7dab/eval.tests.test_index_and_queries.test_info_reads_db": {"message": "test_info_reads_db depends on test_index_creates_db", "text": "/usr/local/lib/python3.10/dist-packages/pytest_dependency.py:101: test_info_reads_db depends on test_index_creates_db"}, "5d62c98c7dab/eval.tests.test_index_and_queries.test_json_output_is_valid_and_contains_known_names": {"message": "test_json_output_is_valid_and_contains_known_names depends on test_index_creates_db", "text": "/usr/local/lib/python3.10/dist-packages/pytest_dependency.py:101: test_json_output_is_valid_and_contains_known_names depends on test_index_creates_db"}, "5d62c98c7dab/eval.tests.test_index_and_queries.test_ls_bytes_lists_expected_entries": {"message": "test_ls_bytes_lists_expected_entries depends on test_index_creates_db", "text": "/usr/local/lib/python3.10/dist-packages/pytest_dependency.py:101: test_ls_bytes_lists_expected_entries depends on test_index_creates_db"}, "5d62c98c7dab/eval.tests.test_index_and_queries.test_topn_bytes_includes_largest_file": {"message": "test_topn_bytes_includes_largest_file depends on test_index_creates_db", "text": "/usr/local/lib/python3.10/dist-packages/pytest_dependency.py:101: test_topn_bytes_includes_largest_file depends on test_index_creates_db"}, "5d62c98c7dab/eval.tests.test_index_and_queries.test_ls_name_sort_changes_order": {"message": "test_ls_name_sort_changes_order depends on test_index_creates_db", "text": "/usr/local/lib/python3.10/dist-packages/pytest_dependency.py:101: test_ls_name_sort_changes_order depends on test_index_creates_db"}, "5d62c98c7dab/eval.tests.test_index_and_queries.test_ls_dirs_only_excludes_files": {"message": "test_ls_dirs_only_excludes_files depends on test_index_creates_db", "text": "/usr/local/lib/python3.10/dist-packages/pytest_dependency.py:101: test_ls_dirs_only_excludes_files depends on test_index_creates_db"}, "5d62c98c7dab/eval.tests.test_index_and_queries.test_xml_output_is_valid_and_contains_known_names": {"message": "test_xml_output_is_valid_and_contains_known_names depends on test_index_creates_db", "text": "/usr/local/lib/python3.10/dist-packages/pytest_dependency.py:101: test_xml_output_is_valid_and_contains_known_names depends on test_index_creates_db"}, "5d62c98c7dab/eval.tests.test_index_and_queries.test_ls_directory_lists_self_not_contents": {"message": "test_ls_directory_lists_self_not_contents depends on test_index_creates_db", "text": "/usr/local/lib/python3.10/dist-packages/pytest_dependency.py:101: test_ls_directory_lists_self_not_contents depends on test_index_creates_db"}, "5d62c98c7dab/eval.tests.test_index_and_queries.test_histogram_smoke": {"message": "test_histogram_smoke depends on test_index_creates_db", "text": "/usr/local/lib/python3.10/dist-packages/pytest_dependency.py:101: test_histogram_smoke depends on test_index_creates_db"}}} \ No newline at end of file