From 72d1fe572d3eb3748a86042a818d140f682ebc14 Mon Sep 17 00:00:00 2001
From: Peter Andersson
It's possible to look up terms in the current test specification
+ (i.e. the spec that's been used to configure and run the current test).
+ The function
For example, in the test specification:
+
+ ...
+ {label, my_server_smoke_test}.
+ {config, "../../my_server_setup.cfg"}.
+ {config, "../../my_server_interface.cfg"}.
+ ...
+ And in e.g. a test suite or a CT hook function:
+
+ ...
+ [{label,[{_Node,TestType}]}, {config,CfgFiles}] =
+ ct:get_testspec_terms([label,config]),
+
+ [verify_my_server_cfg(TestType, CfgFile) || {Node,CfgFile} <- CfgFiles,
+ Node == node()];
+ ...
+