]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
testing: Fix loading test config for tests that were never run
authorTobias Brunner <tobias@strongswan.org>
Wed, 26 Mar 2025 16:56:00 +0000 (17:56 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 4 Apr 2025 10:06:59 +0000 (12:06 +0200)
The file won't exist in the previous location until load-testconfig was
executed once.  Since it's not modified by the script it's fine to
load it directly from the original location.

Fixes: a103f3a2849f ("testing: Add options to only run pre- or posttest scripts of a scenario")
testing/do-tests

index 6e1b7f91790bee79e93d4ea29e5811cc3fa981ce..610e1a1699b2a7586f668d68266355be3f2c79c7 100755 (executable)
@@ -362,7 +362,7 @@ do
        unset DBHOSTS
        unset IPV6
        unset SWANCTL
-       source $TESTDIR/test.conf
+       source $DEFAULTTESTSDIR/${testname}/test.conf
 
        DBDIR=/etc/db.d
        STATUS="passed"