From e4f917aea1ae85e28bb8ae7733fdad5cc943f01c Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 8 May 2024 01:50:50 +0200 Subject: [PATCH] testing.cfg: add a new alias to reduce references to vote names --- testing.cfg | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/testing.cfg b/testing.cfg index 0aeccb753..8469b6318 100644 --- a/testing.cfg +++ b/testing.cfg @@ -14,9 +14,11 @@ alias test_arc_bounce_burst "settemp g_balance_arc_bolt_bounce_count 1 ; settemp alias test_ctf_stalemate90 "settemp g_ctf_stalemate_time 90" alias test_ctf_stalemate120 "settemp g_ctf_stalemate_time 120" -// defer addvote and delvote execution because program commands can't be executed at startup -// (no program is loaded yet) +alias _testing_list "$1 test_blaster_switch ; $1 test_crylink_sec_horizontal ; $1 test_rocket_flying ; $1 test_ctf_stalemate90 ; $1 test_ctf_stalemate120 ; $1 test_arc_bounce ; $1 test_arc_bounce_burst" + +// defer addvote and delvote execution because program commands can't be executed if testing_disable +// and testing_enable are executed at startup (no program is loaded yet) alias _addvote_def "defer 1 \"addvote $1\"" alias _delvote_def "defer 1 \"delvote $1\"" -alias testing_enable "_addvote_def test_blaster_switch ; _addvote_def test_crylink_sec_horizontal ; _addvote_def test_rocket_flying ; _addvote_def test_ctf_stalemate90 ; _addvote_def test_ctf_stalemate120 ; _addvote_def test_arc_bounce ; _addvote_def test_arc_bounce_burst" -alias testing_disable "_delvote_def test_blaster_switch ; _delvote_def test_crylink_sec_horizontal ; _delvote_def test_rocket_flying ; _delvote_def test_ctf_stalemate90 ; _delvote_def test_ctf_stalemate120 ; _delvote_def test_arc_bounce ; _delvote_def test_arc_bounce_burst" +alias testing_enable "_testing_list _addvote_def" +alias testing_disable "_testing_list _delvote_def" -- 2.39.2