Index: example/megatest.config ================================================================== --- example/megatest.config +++ example/megatest.config @@ -1,6 +1,7 @@ [fields] +CFG_TYPE This is the refdb to use. RUN_TYPE Can be: full or quick [setup] # Adjust max_concurrent_jobs to limit parallel jobs max_concurrent_jobs 50 @@ -14,5 +15,8 @@ # As you run more tests you may need to add additional disks # the names are arbitrary but must be unique [disks] disk0 #{getenv PWD}/runs + +[include local.megatest.config] + Index: example/runconfigs.config ================================================================== --- example/runconfigs.config +++ example/runconfigs.config @@ -1,6 +1,9 @@ [default] ALLTESTS see this variable # Your variables here are grouped by targets [SYSTEM/RELEASE] -[SYSTEM_val/RELEASE_val] +[cfg/default] ANOTHERVAR only defined if target is SYSTEM_val/RELEASE_val + +[include local.runconfigs.config] + Index: example/tests/diskspace/diskspace.sh ================================================================== --- example/tests/diskspace/diskspace.sh +++ example/tests/diskspace/diskspace.sh @@ -6,11 +6,11 @@ # measure the free space freespace=`df -k $dirname | grep $dirname | awk '{print $4}'` # get the minfree allowed from the refdb - minfree=`refdb lookup $MT_RUN_AREA_HOME/cfg machines $TARGETHOST minfree` + minfree=`refdb lookup $MT_RUN_AREA_HOME/$CFG_TYPE machines $TARGETHOST minfree` if [[ $freespace -lt $minfree ]];then echo "ERROR: available space $freespace is less than minimum allowed of $minfree on $dirname" else echo "INFO: space available of $freespace k on $dirname meets required minimum of $minfree." Index: example/tests/diskspace/testconfig ================================================================== --- example/tests/diskspace/testconfig +++ example/tests/diskspace/testconfig @@ -7,6 +7,6 @@ waiton ping mode itemwait # Iteration for your tests are controlled by the items section [items] -TARGETHOST [system refdb getrownames cfg machines] +TARGETHOST [system refdb getrownames $CFG_TYPE machines] Index: example/tests/ping/testconfig ================================================================== --- example/tests/ping/testconfig +++ example/tests/ping/testconfig @@ -2,6 +2,6 @@ [ezsteps] ping ping -c 5 $PINGHOST # Iteration for your tests are controlled by the items section [items] -PINGHOST [system refdb getrownames cfg machines] +PINGHOST [system refdb getrownames $CFG_TYPE machines]