Hi,
When I run some of the client-side tests (e.g. hackbench, aiostress,
etc.) from a server with autotest-remote, the tests fail to find the C
sources they need in /usr/local/autotest/tmp/<test_name>/src/.
The tests themselves are placed /usr/local/autotest/tmp/site_tests/ by
autotest-remote. 'src' directory for a test are in
/usr/local/autotest/tmp/site_tests/<test_name>/src
However, 'srcdir' field of the test object is
/usr/local/autotest/tmp/<test_name>/src,
so the tests indeed do not find the files they need in src/.
As a temporary workaround, I patched client/shared/test.py so that
test.srcdir were /usr/local/autotest/tmp/<test_name>/src. That simple
patch is attached.
I suppose there should be a better way to fix this though.
Any ideas how this problem can be resolved?
Regards,
Eugene
--
Eugene Shatokhin, ROSA Laboratory.
www.rosalab.ru
diff --git a/client/shared/test.py b/client/shared/test.py
index 7b5653f..28b61b1 100644
--- a/client/shared/test.py
+++ b/client/shared/test.py
@@ -56,8 +56,10 @@ class base_test(object):
output_config = GLOBAL_CONFIG.get_config_value('COMMON',
'test_output_dir',
default=tmpdir)
- self.srcdir = os.path.join(output_config, os.path.basename(self.bindir),
- 'src')
+# self.srcdir = os.path.join(output_config, os.path.basename(self.bindir),
+# 'src')
+ self.srcdir = os.path.join(output_config, 'site_tests',
+ os.path.basename(self.bindir), 'src')
self.tmpdir = tempfile.mkdtemp("_" + self.tagged_testname,
dir=job.tmpdir)
self._keyvals = []
_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel