Skip to content

test: drop run_all_tests.sh and document how to run scenario tests - #3577

Merged
fujita merged 1 commit into
osrg:masterfrom
fujita:remove-run-all-tests-script
Aug 31, 2026
Merged

test: drop run_all_tests.sh and document how to run scenario tests#3577
fujita merged 1 commit into
osrg:masterfrom
fujita:remove-run-all-tests-script

Conversation

@fujita

@fujita fujita commented Aug 31, 2026

Copy link
Copy Markdown
Member

The scenario tests moved from nose to pytest in d6dee83, but run_all_tests.sh kept invoking each test file as a plain script. The test files have no main block, so every invocation imported the module, ran nothing and exited 0. For two months the script reported "all tests passed successfully" without running a single test, and nobody noticed. The same breakage sat in the README instructions for running one test.

It was never a full run in the first place. It covered 13 of the 30 test files, and it could not prepare the host for two of those 13. bgp_unnumbered_test.py needs IPv6 in Docker and a daemon restart, which would kill the other twelve tests the script had already started in parallel, and tcp_md5_test.py needs the vrf module. Three further test files need a second image built on an older Quagga. Fixing the script means keeping a second test list beside ci.yml, and drift between the two is what broke it. pytest already runs one file or the whole directory with no list to maintain, so delete the script instead.

Document in the README what until now only ci.yml knew: the gobgp-oq image, the Docker IPv6 setup, and the vrf module.

Assisted-by: Claude Opus 5 noreply@anthropic.com

The scenario tests moved from nose to pytest in d6dee83, but
run_all_tests.sh kept invoking each test file as a plain script. The
test files have no __main__ block, so every invocation imported the
module, ran nothing and exited 0. For two months the script reported
"all tests passed successfully" without running a single test, and
nobody noticed. The same breakage sat in the README instructions for
running one test.

It was never a full run in the first place. It covered 13 of the 30
test files, and it could not prepare the host for two of those 13.
bgp_unnumbered_test.py needs IPv6 in Docker and a daemon restart, which
would kill the other twelve tests the script had already started in
parallel, and tcp_md5_test.py needs the vrf module. Three further test
files need a second image built on an older Quagga. Fixing the script
means keeping a second test list beside ci.yml, and drift between the
two is what broke it. pytest already runs one file or the whole
directory with no list to maintain, so delete the script instead.

Document in the README what until now only ci.yml knew: the gobgp-oq
image, the Docker IPv6 setup, and the vrf module.

Assisted-by: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
@fujita
fujita merged commit b2c73cf into osrg:master Aug 31, 2026
42 checks passed
@fujita
fujita deleted the remove-run-all-tests-script branch August 31, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant