From 966547dfeb011800d4b78b8e5d494813bc80559c Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Sun, 16 Dec 2012 16:55:29 -0500 Subject: Simplify k5test.py environments The initial k5test.py design, copied from the dejagnu suite, is to create config files and environments for four expected roles: client, server, master, and slave. This approach exaggerates the complexity of the common case, where the configurations don't need to vary, and limits us to having just one slave for kprop/iprop tests. Instead, create just one configuration by default, and add a special_env() method which sets up a differently configured environment for the few test cases which need one. The run_as_*() methods are collapsed into just run(), which accepts an optional argument for the environment returned by special_env(). --- src/lib/kdb/t_stringattr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/kdb/t_stringattr.py') diff --git a/src/lib/kdb/t_stringattr.py b/src/lib/kdb/t_stringattr.py index f520370a48..085e179e44 100644 --- a/src/lib/kdb/t_stringattr.py +++ b/src/lib/kdb/t_stringattr.py @@ -2,5 +2,5 @@ from k5test import * realm = K5Realm(create_kdb=False) -realm.run_as_master(['./t_stringattr']) +realm.run(['./t_stringattr']) success('String attribute unit tests') -- cgit