This commit is contained in:
@@ -140,7 +140,7 @@ from larv_review.history_commands import read_places
|
||||
from task_bench.record_figures import recorded_bench
|
||||
from run_heavy.capped_docker import SHARE_VARIABLE
|
||||
|
||||
USAGE = "usage: task-bench --image <image> --test <shell text> [--base <ref>] [--head <ref>] [--prefix <shell text>] [--seed <n>] [--bugs <n>] [--runs <n>] [--record-figures], or task-bench --tasks features --image <image> --test <shell text> [--base <ref>] [--head <ref>] [--runs <n>] [--record-figures], or task-bench gather"
|
||||
USAGE = "usage: task-bench --image <image> --test <shell text> [--base <ref>] [--head <ref>] [--prefix <shell text>] [--seed <n>] [--bugs <n>] [--runs <n>] [--record-figures], or task-bench --tasks features|data-sources --image <image> --test <shell text> [--base <ref>] [--head <ref>] [--runs <n>] [--record-figures], or task-bench gather"
|
||||
# A panel of three readers, seated as the README's audience, picked these options on 2026-11-21, each 3 to 0.
|
||||
OPTIONS = ("--base", "--bugs", "--head", "--image", "--prefix", "--record-figures", "--runs", "--seed", "--tasks", "--test")
|
||||
# The one option that takes no value.
|
||||
|
||||
@@ -182,6 +182,7 @@ class OptionsTest(unittest.TestCase):
|
||||
def test_data_sources_is_a_kind_of_task_that_runs_5_times_at_each_side_by_default(self):
|
||||
self.assertEqual(self.options("--tasks", "data-sources")["--runs"], "5")
|
||||
self.assertEqual(self.options("--tasks", "sources").reason, "--tasks takes bugs, features or data-sources, not sources")
|
||||
self.assertIn(", or task-bench --tasks features|data-sources --image <image>", main.USAGE)
|
||||
|
||||
def test_the_options_that_choose_bugs_are_refused_with_data_sources(self):
|
||||
self.assertEqual(self.options("--tasks", "data-sources", "--seed", "2").reason, "--seed is for a bench of bugs, so it doesn't go with --tasks data-sources")
|
||||
|
||||
Reference in New Issue
Block a user