This is a stupid bug, the test doesn't actually call the function to be
tested. Adding the function to actually test fixes the issue.

Signed-off-by: Dylan Baker <[email protected]>
---
 framework/tests/programs_tests.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/framework/tests/programs_tests.py 
b/framework/tests/programs_tests.py
index 1fe2227..1739f3f 100644
--- a/framework/tests/programs_tests.py
+++ b/framework/tests/programs_tests.py
@@ -80,9 +80,10 @@ class TestGetConfigHomeFallback(utils.TestWithEnvClean):
             os.mkdir(os.path.join(tdir, '.config'))
             with open(os.path.join(tdir, '.config/piglit.conf'), 'w') as f:
                 f.write(CONF_FILE)
+            core.get_config()
 
         nt.ok_(core.PIGLIT_CONFIG.has_section('nose-test'),
-               msg='$HOME/.config not found')
+               msg='$HOME/.config/piglit.conf not found')
 
 
 class TestGetConfigLocal(utils.TestWithEnvClean):
-- 
2.0.4

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to