mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
Martin Schwenke
b8b28cb567
Test suite: wait_until_node_has_status() now uses "onnode any".
Many tests currently do this sort of thing: onnode 0 $CTDB_TEST_WRAPPER wait_until_node_has_status 1 disconnected In fact, they all use exactly the same "onnode 0 $CTDB_TEST_WRAPPER" idiom. This is both repetitious and dangerous, since node 0 might be shutdown during a test. Instead, we push "onnode any $CTDB_TEST_WRAPPER" (which selects a connected node) into wait_until_node_has_status() and just call that function directly in tests, like this: wait_until_node_has_status 1 disconnected Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit a2aaef03d4d6bbd4b42f50f732254935d4d3469c)
Description
https://gitlab.com/samba-team/samba is the Official GitLab mirror of https://git.samba.org/samba.git -- Merge requests should be made on GitLab (not on GitHub)
452 MiB
Languages
C
76.3%
Python
18.9%
Shell
2.8%
Perl
1.4%
Rust
0.3%
Other
0.1%