When using the Autotest generated temporary directory for runltp,
several tests fail but otherwise wouldn't if a different temporary
diretory is used.

For example, access02 fails with a message like the following.
access02 1 TBROK : tst_tmpdir:
mkdtemp(/usr/local/autotest/tmp/tmpsIEABp_ltp/ltp-sQqKR20197/acc7CjKsN)
failed: errno=EACCES(13): Permission denied

The root cause of why this occurs is still unknown.

This patch switches the temporary directory used from the Autotest
generated one to the LTP source directory to workaround this issue.

Signed-off-by: Vinson Lee <[email protected]>
---
 client/tests/ltp/ltp.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/client/tests/ltp/ltp.py b/client/tests/ltp/ltp.py
index 71ed1db..404468b 100644
--- a/client/tests/ltp/ltp.py
+++ b/client/tests/ltp/ltp.py
@@ -50,7 +50,7 @@ class ltp(test.test):
             failcmdfile = os.path.join(self.debugdir, 'failcmdfile')
             skipfile = os.path.join(self.bindir, 'skipfile')
             args2 = '-q -l %s -C %s -d %s -S %s' % \
-                (logfile, failcmdfile, self.tmpdir, skipfile)
+                (logfile, failcmdfile, self.srcdir, skipfile)
             args = args + ' ' + args2
 
         ltpbin_dir = os.path.join(self.srcdir, 'bin')
-- 
1.7.5.4

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to