Index: tests.scm ================================================================== --- tests.scm +++ tests.scm @@ -209,11 +209,13 @@ "")))) (newwaitons (if (and (list? global-waitons) (not (null? global-waitons))) (begin (debug:print 0 *default-log-port* "Adding global waitons " global-waitons) - (append newwaitons-tmp global-waitons)) + (append newwaitons-tmp (filter (lambda (x) ;; remove self from global waitons + (not (equal? x test-name))) + global-waitons))) newwaitons-tmp))) (values ;; the waitons (filter (lambda (x) (if (hash-table-ref/default all-tests-registry x #f) Index: tests/simplerun/runconfigs.config ================================================================== --- tests/simplerun/runconfigs.config +++ tests/simplerun/runconfigs.config @@ -15,10 +15,10 @@ # You should have received a copy of the GNU General Public License # along with Megatest. If not, see . [default] ALLTESTS see this variable -!GLOBAL_WAITONS test_abc +!GLOBAL_WAITONS runfirst # Your variables here are grouped by targets [SYSTEM/RELEASE] [SYSTEM_val/RELEASE_val] ANOTHERVAR only defined if target is SYSTEM_val/RELEASE_val ADDED tests/simplerun/tests/runfirst/testconfig Index: tests/simplerun/tests/runfirst/testconfig ================================================================== --- /dev/null +++ tests/simplerun/tests/runfirst/testconfig @@ -0,0 +1,45 @@ +# Copyright 2006-2017, Matthew Welland. +# +# This file is part of Megatest. +# +# Megatest is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Megatest is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Megatest. If not, see . + +# Add additional steps here. Format is "stepname script" +[ezsteps] +step1 step1.sh +step2 step2.sh + +# Test requirements are specified here +[requirements] +# waiton setup +priority 0 + +# Iteration for your tests are controlled by the items section +[items] +PARTOFDAY morning noon afternoon evening night + +[scripts] +step1.sh #!/bin/bash + sleep 1 + +step2.sh #!/bin/bash + sleep 2 + +# test_meta is a section for storing additional data on your test +[test_meta] +author matt +owner matt +description An example test +tags tagone,tagtwo +reviewed never