atex 1.2__tar.gz → 1.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. {atex-1.2 → atex-1.3}/PKG-INFO +1 -1
  2. {atex-1.2 → atex-1.3}/atex/executor/fmf/testcontrol.py +4 -1
  3. {atex-1.2 → atex-1.3}/atex/orchestrator/adhoc/mixins.py +12 -8
  4. {atex-1.2 → atex-1.3}/atex/provisioner/testingfarm/api.py +17 -8
  5. {atex-1.2 → atex-1.3}/atex/util/subprocess.py +5 -1
  6. {atex-1.2 → atex-1.3}/pyproject.toml +1 -1
  7. {atex-1.2 → atex-1.3}/.claude/CLAUDE.md +0 -0
  8. {atex-1.2 → atex-1.3}/.editorconfig +0 -0
  9. {atex-1.2 → atex-1.3}/.github/scripts/pdoc/patch_pdoc.sh +0 -0
  10. {atex-1.2 → atex-1.3}/.github/scripts/pdoc/post_process_repo.sh +0 -0
  11. {atex-1.2 → atex-1.3}/.github/scripts/pdoc/prepare_templates.sh +0 -0
  12. {atex-1.2 → atex-1.3}/.github/workflows/pages.yaml +0 -0
  13. {atex-1.2 → atex-1.3}/.github/workflows/self-tests.yaml +0 -0
  14. {atex-1.2 → atex-1.3}/.github/workflows/style.yaml +0 -0
  15. {atex-1.2 → atex-1.3}/.gitignore +0 -0
  16. {atex-1.2 → atex-1.3}/API_RULES.md +0 -0
  17. {atex-1.2 → atex-1.3}/COPYING.txt +0 -0
  18. {atex-1.2 → atex-1.3}/DEVEL.md +0 -0
  19. {atex-1.2 → atex-1.3}/README.md +0 -0
  20. {atex-1.2 → atex-1.3}/atex/__init__.py +0 -0
  21. {atex-1.2 → atex-1.3}/atex/aggregator/README.md +0 -0
  22. {atex-1.2 → atex-1.3}/atex/aggregator/__init__.py +0 -0
  23. {atex-1.2 → atex-1.3}/atex/aggregator/jsonl/README.md +0 -0
  24. {atex-1.2 → atex-1.3}/atex/aggregator/jsonl/__init__.py +0 -0
  25. {atex-1.2 → atex-1.3}/atex/aggregator/jsonl/jsonl.py +0 -0
  26. {atex-1.2 → atex-1.3}/atex/aggregator/multi/README.md +0 -0
  27. {atex-1.2 → atex-1.3}/atex/aggregator/multi/__init__.py +0 -0
  28. {atex-1.2 → atex-1.3}/atex/aggregator/multi/multi.py +0 -0
  29. {atex-1.2 → atex-1.3}/atex/aggregator/reportportal/README.md +0 -0
  30. {atex-1.2 → atex-1.3}/atex/aggregator/reportportal/__init__.py +0 -0
  31. {atex-1.2 → atex-1.3}/atex/aggregator/reportportal/api.py +0 -0
  32. {atex-1.2 → atex-1.3}/atex/aggregator/reportportal/reportportal.py +0 -0
  33. {atex-1.2 → atex-1.3}/atex/aggregator/yamld/README.md +0 -0
  34. {atex-1.2 → atex-1.3}/atex/aggregator/yamld/__init__.py +0 -0
  35. {atex-1.2 → atex-1.3}/atex/aggregator/yamld/yamld.py +0 -0
  36. {atex-1.2 → atex-1.3}/atex/cli/README.md +0 -0
  37. {atex-1.2 → atex-1.3}/atex/cli/__init__.py +0 -0
  38. {atex-1.2 → atex-1.3}/atex/cli/fmf.py +0 -0
  39. {atex-1.2 → atex-1.3}/atex/cli/reportportal.py +0 -0
  40. {atex-1.2 → atex-1.3}/atex/cli/shvirt/__init__.py +0 -0
  41. {atex-1.2 → atex-1.3}/atex/cli/shvirt/common.py +0 -0
  42. {atex-1.2 → atex-1.3}/atex/cli/shvirt/install.py +0 -0
  43. {atex-1.2 → atex-1.3}/atex/cli/shvirt/reserve.py +0 -0
  44. {atex-1.2 → atex-1.3}/atex/cli/testingfarm.py +0 -0
  45. {atex-1.2 → atex-1.3}/atex/cli/virt/__init__.py +0 -0
  46. {atex-1.2 → atex-1.3}/atex/cli/virt/install.py +0 -0
  47. {atex-1.2 → atex-1.3}/atex/cli/virt/kickstart.py +0 -0
  48. {atex-1.2 → atex-1.3}/atex/cli/virt/ks.cfg +0 -0
  49. {atex-1.2 → atex-1.3}/atex/cli/virt/reserve.py +0 -0
  50. {atex-1.2 → atex-1.3}/atex/connection/README.md +0 -0
  51. {atex-1.2 → atex-1.3}/atex/connection/__init__.py +0 -0
  52. {atex-1.2 → atex-1.3}/atex/connection/local/README.md +0 -0
  53. {atex-1.2 → atex-1.3}/atex/connection/local/__init__.py +0 -0
  54. {atex-1.2 → atex-1.3}/atex/connection/local/local.py +0 -0
  55. {atex-1.2 → atex-1.3}/atex/connection/podman/README.md +0 -0
  56. {atex-1.2 → atex-1.3}/atex/connection/podman/__init__.py +0 -0
  57. {atex-1.2 → atex-1.3}/atex/connection/podman/podman.py +0 -0
  58. {atex-1.2 → atex-1.3}/atex/connection/ssh/README.md +0 -0
  59. {atex-1.2 → atex-1.3}/atex/connection/ssh/__init__.py +0 -0
  60. {atex-1.2 → atex-1.3}/atex/connection/ssh/ssh.py +0 -0
  61. {atex-1.2 → atex-1.3}/atex/executor/README.md +0 -0
  62. {atex-1.2 → atex-1.3}/atex/executor/__init__.py +0 -0
  63. {atex-1.2 → atex-1.3}/atex/executor/beakerlib/README.md +0 -0
  64. {atex-1.2 → atex-1.3}/atex/executor/beakerlib/__init__.py +0 -0
  65. {atex-1.2 → atex-1.3}/atex/executor/beakerlib/beakerlib.py +0 -0
  66. {atex-1.2 → atex-1.3}/atex/executor/command/README.md +0 -0
  67. {atex-1.2 → atex-1.3}/atex/executor/command/__init__.py +0 -0
  68. {atex-1.2 → atex-1.3}/atex/executor/command/command.py +0 -0
  69. {atex-1.2 → atex-1.3}/atex/executor/fmf/README.md +0 -0
  70. {atex-1.2 → atex-1.3}/atex/executor/fmf/RESULTS.md +0 -0
  71. {atex-1.2 → atex-1.3}/atex/executor/fmf/TEST_CONTROL.md +0 -0
  72. {atex-1.2 → atex-1.3}/atex/executor/fmf/__init__.py +0 -0
  73. {atex-1.2 → atex-1.3}/atex/executor/fmf/discover.py +0 -0
  74. {atex-1.2 → atex-1.3}/atex/executor/fmf/duration.py +0 -0
  75. {atex-1.2 → atex-1.3}/atex/executor/fmf/fmf.py +0 -0
  76. {atex-1.2 → atex-1.3}/atex/executor/fmf/metadata.py +0 -0
  77. {atex-1.2 → atex-1.3}/atex/executor/fmf/reporter.py +0 -0
  78. {atex-1.2 → atex-1.3}/atex/executor/fmf/scripts.py +0 -0
  79. {atex-1.2 → atex-1.3}/atex/executor/fmf/test-wrapper +0 -0
  80. {atex-1.2 → atex-1.3}/atex/orchestrator/README.md +0 -0
  81. {atex-1.2 → atex-1.3}/atex/orchestrator/__init__.py +0 -0
  82. {atex-1.2 → atex-1.3}/atex/orchestrator/adhoc/README.md +0 -0
  83. {atex-1.2 → atex-1.3}/atex/orchestrator/adhoc/__init__.py +0 -0
  84. {atex-1.2 → atex-1.3}/atex/orchestrator/adhoc/adhoc.py +0 -0
  85. {atex-1.2 → atex-1.3}/atex/orchestrator/simple/README.md +0 -0
  86. {atex-1.2 → atex-1.3}/atex/orchestrator/simple/__init__.py +0 -0
  87. {atex-1.2 → atex-1.3}/atex/orchestrator/simple/simple.py +0 -0
  88. {atex-1.2 → atex-1.3}/atex/provisioner/README.md +0 -0
  89. {atex-1.2 → atex-1.3}/atex/provisioner/__init__.py +0 -0
  90. {atex-1.2 → atex-1.3}/atex/provisioner/anyconn/README.md +0 -0
  91. {atex-1.2 → atex-1.3}/atex/provisioner/anyconn/__init__.py +0 -0
  92. {atex-1.2 → atex-1.3}/atex/provisioner/anyconn/anyconn.py +0 -0
  93. {atex-1.2 → atex-1.3}/atex/provisioner/local/README.md +0 -0
  94. {atex-1.2 → atex-1.3}/atex/provisioner/local/__init__.py +0 -0
  95. {atex-1.2 → atex-1.3}/atex/provisioner/local/local.py +0 -0
  96. {atex-1.2 → atex-1.3}/atex/provisioner/podman/README.md +0 -0
  97. {atex-1.2 → atex-1.3}/atex/provisioner/podman/__init__.py +0 -0
  98. {atex-1.2 → atex-1.3}/atex/provisioner/podman/podman.py +0 -0
  99. {atex-1.2 → atex-1.3}/atex/provisioner/podman/systemd.py +0 -0
  100. {atex-1.2 → atex-1.3}/atex/provisioner/podman/utils.py +0 -0
  101. {atex-1.2 → atex-1.3}/atex/provisioner/shvirt/PROTOCOL.md +0 -0
  102. {atex-1.2 → atex-1.3}/atex/provisioner/shvirt/README.md +0 -0
  103. {atex-1.2 → atex-1.3}/atex/provisioner/shvirt/SERVER.md +0 -0
  104. {atex-1.2 → atex-1.3}/atex/provisioner/shvirt/__init__.py +0 -0
  105. {atex-1.2 → atex-1.3}/atex/provisioner/shvirt/atex-virt-helper +0 -0
  106. {atex-1.2 → atex-1.3}/atex/provisioner/shvirt/shvirt.py +0 -0
  107. {atex-1.2 → atex-1.3}/atex/provisioner/tempvirt/README.md +0 -0
  108. {atex-1.2 → atex-1.3}/atex/provisioner/tempvirt/__init__.py +0 -0
  109. {atex-1.2 → atex-1.3}/atex/provisioner/tempvirt/tempvirt.py +0 -0
  110. {atex-1.2 → atex-1.3}/atex/provisioner/tempvirt/utils.py +0 -0
  111. {atex-1.2 → atex-1.3}/atex/provisioner/testingfarm/README.md +0 -0
  112. {atex-1.2 → atex-1.3}/atex/provisioner/testingfarm/__init__.py +0 -0
  113. {atex-1.2 → atex-1.3}/atex/provisioner/testingfarm/cleaning.sh +0 -0
  114. {atex-1.2 → atex-1.3}/atex/provisioner/testingfarm/testingfarm.py +0 -0
  115. {atex-1.2 → atex-1.3}/atex/util/README.md +0 -0
  116. {atex-1.2 → atex-1.3}/atex/util/__init__.py +0 -0
  117. {atex-1.2 → atex-1.3}/atex/util/dedent.py +0 -0
  118. {atex-1.2 → atex-1.3}/atex/util/loggers.py +0 -0
  119. {atex-1.2 → atex-1.3}/atex/util/named_mapping.py +0 -0
  120. {atex-1.2 → atex-1.3}/atex/util/nonblock_line_reader.py +0 -0
  121. {atex-1.2 → atex-1.3}/atex/util/path.py +0 -0
  122. {atex-1.2 → atex-1.3}/atex/util/ssh.py +0 -0
  123. {atex-1.2 → atex-1.3}/atex/util/threads.py +0 -0
  124. {atex-1.2 → atex-1.3}/tests/aggregator/conftest.py +0 -0
  125. {atex-1.2 → atex-1.3}/tests/aggregator/shared.py +0 -0
  126. {atex-1.2 → atex-1.3}/tests/aggregator/test_jsonl.py +0 -0
  127. {atex-1.2 → atex-1.3}/tests/aggregator/test_jsonl_gzip.py +0 -0
  128. {atex-1.2 → atex-1.3}/tests/aggregator/test_jsonl_lzma.py +0 -0
  129. {atex-1.2 → atex-1.3}/tests/aggregator/test_multi.py +0 -0
  130. {atex-1.2 → atex-1.3}/tests/aggregator/test_yamld.py +0 -0
  131. {atex-1.2 → atex-1.3}/tests/conftest.py +0 -0
  132. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/conftest.py +0 -0
  133. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/libraries/.fmf/version +0 -0
  134. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/libraries/main.fmf +0 -0
  135. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/libraries/rlimport.sh +0 -0
  136. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/libraries/rlimport_all.sh +0 -0
  137. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/reboot/.fmf/version +0 -0
  138. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/reboot/main.fmf +0 -0
  139. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/reboot/reboot.sh +0 -0
  140. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/reboot/reboot_fail.sh +0 -0
  141. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/reboot/reboot_noend.sh +0 -0
  142. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/reboot/reboot_rlrun.sh +0 -0
  143. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/results/.fmf/version +0 -0
  144. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/results/main.fmf +0 -0
  145. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/results/report_result.sh +0 -0
  146. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/results/submit_log.sh +0 -0
  147. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/sanity/.fmf/version +0 -0
  148. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/sanity/fallback_status.sh +0 -0
  149. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/fmf_trees/sanity/main.fmf +0 -0
  150. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/test_libraries.py +0 -0
  151. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/test_reboot.py +0 -0
  152. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/test_results.py +0 -0
  153. {atex-1.2 → atex-1.3}/tests/executor/beakerlib/test_sanity.py +0 -0
  154. {atex-1.2 → atex-1.3}/tests/executor/command/conftest.py +0 -0
  155. {atex-1.2 → atex-1.3}/tests/executor/command/test_command.py +0 -0
  156. {atex-1.2 → atex-1.3}/tests/executor/fmf/conftest.py +0 -0
  157. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/cwd/.fmf/version +0 -0
  158. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/cwd/file_in_fmfdir +0 -0
  159. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/cwd/main.fmf +0 -0
  160. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/cwd/subdir/file_in_subdir +0 -0
  161. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/cwd/subdir/main.fmf +0 -0
  162. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/discover/.fmf/version +0 -0
  163. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/discover/extlib/.fmf/version +0 -0
  164. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/discover/extlib/extfunc/main.fmf +0 -0
  165. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/discover/extlib/main.fmf +0 -0
  166. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/discover/main.fmf +0 -0
  167. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/discover/mylib/main.fmf +0 -0
  168. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/discover/subdir/main.fmf +0 -0
  169. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/env/.fmf/version +0 -0
  170. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/env/main.fmf +0 -0
  171. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/.fmf/version +0 -0
  172. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/adjusted.fmf +0 -0
  173. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/disabled.fmf +0 -0
  174. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/environment.fmf +0 -0
  175. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/filters.fmf +0 -0
  176. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/inherit/child/main.fmf +0 -0
  177. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/inherit/main.fmf +0 -0
  178. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/manual.fmf +0 -0
  179. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/nontest.fmf +0 -0
  180. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/plans/filtered.fmf +0 -0
  181. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/plans/with_env.fmf +0 -0
  182. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/simple/main.fmf +0 -0
  183. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/story.fmf +0 -0
  184. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/metadata/virtual.fmf +0 -0
  185. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/misc/.fmf/version +0 -0
  186. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/misc/main.fmf +0 -0
  187. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/pkgs/.fmf/version +0 -0
  188. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/pkgs/main.fmf +0 -0
  189. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/pty/.fmf/version +0 -0
  190. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/pty/main.fmf +0 -0
  191. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/reboot/.fmf/version +0 -0
  192. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/reboot/main.fmf +0 -0
  193. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/results/.fmf/version +0 -0
  194. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/results/functions +0 -0
  195. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/results/main.fmf +0 -0
  196. {atex-1.2 → atex-1.3}/tests/executor/fmf/fmf_trees/results/randfile +0 -0
  197. {atex-1.2 → atex-1.3}/tests/executor/fmf/test_cwd.py +0 -0
  198. {atex-1.2 → atex-1.3}/tests/executor/fmf/test_discover.py +0 -0
  199. {atex-1.2 → atex-1.3}/tests/executor/fmf/test_env.py +0 -0
  200. {atex-1.2 → atex-1.3}/tests/executor/fmf/test_metadata.py +0 -0
  201. {atex-1.2 → atex-1.3}/tests/executor/fmf/test_misc.py +0 -0
  202. {atex-1.2 → atex-1.3}/tests/executor/fmf/test_pkgs.py +0 -0
  203. {atex-1.2 → atex-1.3}/tests/executor/fmf/test_pty.py +0 -0
  204. {atex-1.2 → atex-1.3}/tests/executor/fmf/test_reboot.py +0 -0
  205. {atex-1.2 → atex-1.3}/tests/executor/fmf/test_results.py +0 -0
  206. {atex-1.2 → atex-1.3}/tests/orchestrator/conftest.py +0 -0
  207. {atex-1.2 → atex-1.3}/tests/orchestrator/test_adhoc.py +0 -0
  208. {atex-1.2 → atex-1.3}/tests/provisioner/shared.py +0 -0
  209. {atex-1.2 → atex-1.3}/tests/provisioner/test_anyconn.py +0 -0
  210. {atex-1.2 → atex-1.3}/tests/provisioner/test_local.py +0 -0
  211. {atex-1.2 → atex-1.3}/tests/provisioner/test_podman.py +0 -0
  212. {atex-1.2 → atex-1.3}/tests/provisioner/test_podman_systemd.py +0 -0
  213. {atex-1.2 → atex-1.3}/tests/provisioner/test_tempvirt.py +0 -0
  214. {atex-1.2 → atex-1.3}/tests/provisioner/test_testingfarm.py +0 -0
  215. {atex-1.2 → atex-1.3}/tests/testutil/__init__.py +0 -0
  216. {atex-1.2 → atex-1.3}/tests/testutil/timeout.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: atex
3
- Version: 1.2
3
+ Version: 1.3
4
4
  Summary: Ad-hoc Test EXecution
5
5
  Project-URL: Homepage, https://github.com/RHSecurityCompliance/atex
6
6
  License-Expression: GPL-3.0-or-later
@@ -188,7 +188,10 @@ class TestControl:
188
188
  if written == 0:
189
189
  raise BadControlError("EOF when reading data")
190
190
  file_length -= written
191
- yield
191
+ # yield only if there is still data left to be read next,
192
+ # fall through to .report() if we already read everything
193
+ if file_length > 0:
194
+ yield
192
195
 
193
196
  self.logger.debug("file recv ended")
194
197
 
@@ -69,16 +69,20 @@ def FMFPriorityMixin(fmf_tests): # noqa: N802
69
69
  def priority(name):
70
70
  return fmf_tests.data[name].get("extra-priority", 0)
71
71
 
72
- # this will be >0 if there are higher-than-0 priority tests,
73
- # and <0 if there are no 0-priority tests left
74
- # - in either case, we want the highest priority
75
72
  best = max(to_run, key=priority)
76
- if priority(best) != 0:
77
- return best
73
+ highest_prio = priority(best)
78
74
 
79
- # only tests with 0 priority left (or with it unspecified),
80
- # pass on the original order
81
- return super().next_test(to_run, previous)
75
+ # tests with a positive prio run first; pick highest-prio one
76
+ if highest_prio > 0:
77
+ return best
78
+ # only zero or lower prio left, delegate any zero-prio in orig order
79
+ # - these must not contain non-zero-prio tests, those run after
80
+ elif highest_prio == 0:
81
+ zero_prio = [name for name in to_run if priority(name) == 0]
82
+ return super().next_test(zero_prio, previous)
83
+ # only negative priorities remain; pick highest-prio one
84
+ else:
85
+ return best
82
86
 
83
87
  return FMFPriorityMixin
84
88
 
@@ -670,23 +670,32 @@ class Reserve:
670
670
  # (it will be failing to login for a while, until the reserve test
671
671
  # installs our ssh pubkey into authorized_keys)
672
672
  ssh_cmd = (
673
- "ssh", "-q", "-i", ssh_key.absolute(), "-oConnectionAttempts=60",
673
+ "ssh", "-q", "-i", ssh_key.absolute(),
674
674
  "-oStrictHostKeyChecking=no", "-oUserKnownHostsFile=/dev/null",
675
- "-oBatchMode=yes", f"{ssh_user}@{ssh_host}",
675
+ "-oBatchMode=yes",
676
+ f"{ssh_user}@{ssh_host}",
676
677
  )
677
678
  while True:
678
679
  time.sleep(1)
679
680
  self.request.assert_alive()
680
681
 
681
- proc = subprocess.run(
682
- (*ssh_cmd, "exit 123"),
683
- stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
684
- )
685
- if proc.returncode == 123:
686
- break
682
+ self.logger.info(f"request {self.request.id} trying ssh {ssh_user}@{ssh_host}")
683
+ try:
684
+ proc = subprocess.run(
685
+ (*ssh_cmd, "exit 123"),
686
+ stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
687
+ # don't get stuck in KEX after TCP is already established
688
+ timeout=300,
689
+ )
690
+ except subprocess.TimeoutExpired:
691
+ pass
692
+ else:
693
+ if proc.returncode == 123:
694
+ break
687
695
 
688
696
  # run OS cleaning script (if requested)
689
697
  if self._os_cleaning:
698
+ self.logger.info(f"request {self.request.id} doing os_cleaning")
690
699
  util.subprocess_log(
691
700
  (*ssh_cmd, "bash"),
692
701
  logger=self.logger,
@@ -42,7 +42,11 @@ def subprocess_stream(cmd, *, stream="stdout", check=False, input=None, **kwargs
42
42
  proc.stdin.write(input)
43
43
  except BrokenPipeError:
44
44
  pass
45
- proc.stdin.close()
45
+ # TextIOWrapper.close() may still try to write buffered data
46
+ try:
47
+ proc.stdin.close()
48
+ except BrokenPipeError:
49
+ pass
46
50
  line_stream = getattr(proc, stream)
47
51
  for line in line_stream:
48
52
  yield line.rstrip("\n")
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
6
6
  name = "atex"
7
7
  description = "Ad-hoc Test EXecution"
8
8
  readme = "README.md"
9
- version = "1.2"
9
+ version = "1.3"
10
10
  license = "GPL-3.0-or-later"
11
11
  requires-python = ">= 3.12"
12
12
  dependencies = [
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes