[LTP] [LTP-20160510] acl_test01: 44: .: test.sh: not found

Cyril Hrubis chrubis@suse.cz
Mon May 30 17:32:20 CEST 2016


Hi!
> root# echo $PATH
> /opt/cmake/bin:/opt/xorg/bin:/opt/llvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

The path is added to the $PATH at the start of the runltp script, if you
want to know if it was added correctly you have to do echo $PATH at the
end of the setup() in runltp script.

> root# cd /opt/ltp ; LC_ALL=C ./runltp -s acl_test01 | tee acl_test01.log
> 
> [...]
> TESTING ACLS FOR USER root
> Trying extended acls for files
> acltest01 1 TPASS : Extended acls for files.
> Trying extended acls for file links
> acltest01 2 TPASS : Extended acls for links.
> /opt/ltp/testcases/bin/acl_test01: 44: .: test.sh: not found

This is certainly unexpected.

What is /bin/sh pointing to? Is this debian with dash?

Still this should really work.

> > Should be fixed -> I'm about to push a fix, stay tuned.
> >
> > The cleanup has been executefd twice at least since 2010 and possibly
> > since the testcase was introduced.
> >
> 
> OK, I am patient.
> Thanks for the explanations.

Fixed in:

https://github.com/linux-test-project/ltp/commit/ee2d3ee269264198837726304873195134a4232c

> > And I am only a test maintainer.
> >
> > But seriously I've glanced over the patches and it seems to implement
> > {get,set,remove}xattr via generic handlers instead of fs specific
> > handlers. And we have syscall tests for {get,set,remove}xattr...
> >
> 
> Is there a testcase around - runnable via "runltp -s $testcase_script".

These are executed as a part of syscall tests.

You can simply do ./runltp -s xattr to execute all testcases that have
xattr in their name.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list