From: Cyril Hrubis Date: Wed, 7 Sep 2016 12:19:02 +0200 Subject: [LTP] [PATCH 3/4] memcg_lib.sh: Get rid of sleep 1 in signal_memcg_process In-Reply-To: <57C94968.5070609@oracle.com> References: <1472750315-30848-1-git-send-email-chrubis@suse.cz> <1472750315-30848-3-git-send-email-chrubis@suse.cz> <57C94968.5070609@oracle.com> Message-ID: <20160907101902.GA14864@rei.suse.cz> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi! > A side note. > > In fact, in LTP we use 'local' in test cases written for '/bin/sh', > whereas 'local' is not in POSIX. Maybe document this fact in the test > writing guidelines? Something like that? diff --git a/doc/test-writing-guidelines.txt b/doc/test-writing-guidelines.txt index c7d301f..f927fc6 100644 --- a/doc/test-writing-guidelines.txt +++ b/doc/test-writing-guidelines.txt @@ -61,6 +61,11 @@ When writing testcases in shell write in *portable shell* only, it's a good idea to try to run the test using alternative shell (alternative to bash, for example dash) too. +*Portable shell* means Shell Command Language as defined by POSIX with a +exception of few widely used extensions, namely 'local' keyword used inside of +functions and '-o' and '-a' test parameters (that are marked as obsolete in +POSIX). + You can either try to run the testcases on Debian which has '/bin/sh' pointing to 'dash' by default or install 'dash' on your favorite distribution and use it to run the tests. If your distribution lacks 'dash' package you can always -- Cyril Hrubis chrubis@suse.cz