Hi All,

Description of problem:

I am getting error while running  containers   from  LTP  Kernel stress test 
case, from LTP version  20120903 (ltp-full-20120903.tar) i.e. on Linux 3.2 
kernel. Below are the outputs for error.

containers from LTP stress  fails

Containers                     FAIL       1

Below are the cause for failing above mentioned testcase:


child.sh: line 38: tst_resm: command not found
/opt/ltp/testcases/bin/child_2.sh: line 65: tst_resm: command not found
/opt/ltp/testcases/bin/child_1.sh: line 71: tst_resm: command not found
rename_net.sh: line 50: tst_resm: command not found
/opt/ltp/testcases/bin/childipv6.sh: line 72: tst_resm: command not found
parentns.sh    0  TINFO  :  Pinging ChildNS from ParentNS
Error: Can't cd
ch_ftp.sh: line 40: tst_resm: command not found
Error while running the script


Suggested Code changes:

Below are the code changes:

diff -Nurp a/ltp-full-20130109/testcases/kernel/containers/netns/ch_ftp.sh 
b/ltp-full-20130109/testcases/kernel/containers/netns/ch_ftp.sh
--- a/ltp-full-20130109/testcases/kernel/containers/netns/ch_ftp.sh     
2013-01-09 02:07:20.000000000 -0700
+++ b/ltp-full-20130109/testcases/kernel/containers/netns/ch_ftp.sh     
2013-02-20 00:48:58.000000000 -0700
@@ -27,6 +27,7 @@ TST_COUNT=1
export TCID
export TST_COUNT
export TST_TOTAL
+export PATH=$PATH:`dirname $0`
     ping -q -c 2 $IP1 > /dev/null
     if [ $? -ne 0 ] ; then
diff -Nurp a/ltp-full-20130109/testcases/kernel/containers/netns/child_1.sh 
b/ltp-full-20130109/testcases/kernel/containers/netns/child_1.sh
--- a/ltp-full-20130109/testcases/kernel/containers/netns/child_1.sh    
2013-01-09 02:07:20.000000000 -0700
+++ b/ltp-full-20130109/testcases/kernel/containers/netns/child_1.sh    
2013-02-20 00:27:14.000000000 -0700
@@ -28,6 +28,7 @@ TST_COUNT=1
export TCID
export TST_COUNT
export TST_TOTAL
+export PATH=$PATH:`dirname $0`
 . initialize.sh
status=0
diff -Nurp a/ltp-full-20130109/testcases/kernel/containers/netns/child_2.sh 
b/ltp-full-20130109/testcases/kernel/containers/netns/child_2.sh
--- a/ltp-full-20130109/testcases/kernel/containers/netns/child_2.sh    
2013-01-09 02:07:20.000000000 -0700
+++ b/ltp-full-20130109/testcases/kernel/containers/netns/child_2.sh    
2013-02-20 00:28:36.000000000 -0700
@@ -28,6 +28,7 @@ TST_COUNT=1
export TCID
export TST_COUNT
export TST_TOTAL
+export PATH=$PATH:`dirname $0`
. initialize.sh
status=0
diff -Nurp a/ltp-full-20130109/testcases/kernel/containers/netns/childipv6.sh 
b/ltp-full-20130109/testcases/kernel/containers/netns/childipv6.sh
--- a/ltp-full-20130109/testcases/kernel/containers/netns/childipv6.sh  
2013-01-09 02:07:20.000000000 -0700
+++ b/ltp-full-20130109/testcases/kernel/containers/netns/childipv6.sh  
2013-02-20 00:29:38.000000000 -0700
@@ -37,6 +37,7 @@ TST_COUNT=1
export TCID
export TST_COUNT
export TST_TOTAL
+export PATH=$PATH:`dirname $0`
.  initialize.sh
status=0
diff -Nurp a/ltp-full-20130109/testcases/kernel/containers/netns/childns.sh 
b/ltp-full-20130109/testcases/kernel/containers/netns/childns.sh
--- a/ltp-full-20130109/testcases/kernel/containers/netns/childns.sh    
2013-01-09 02:07:20.000000000 -0700
+++ b/ltp-full-20130109/testcases/kernel/containers/netns/childns.sh    
2013-02-20 00:30:28.000000000 -0700
@@ -33,6 +33,7 @@
# The test case ID, the test case count and the total number of test case
 export TCID=${TCID:-childns.sh}
+export PATH=$PATH:`dirname $0`
. cmdlib.sh
exists awk grep ip ping sshd
. initialize.sh
diff -Nurp 
a/ltp-full-20130109/testcases/kernel/containers/netns/container_ftp.pl 
b/ltp-full-20130109/testcases/kernel/containers/netns/container_ftp.pl
--- a/ltp-full-20130109/testcases/kernel/containers/netns/container_ftp.pl    
2013-01-09 02:07:20.000000000 -0700
+++ b/ltp-full-20130109/testcases/kernel/containers/netns/container_ftp.pl    
2013-02-20 00:34:24.000000000 -0700
@@ -36,8 +36,8 @@ my $i = 0;
my $kount = 51;
my $file="junkfile";
-my $tmpdir = "/var/ftp";
-
+#my $tmpdir = "/var/ftp";
+my $tmpdir = "/home/ftp";
my $dir;
$dir = tempdir("container_ftp.XXXXXXX", DIR => $tmpdir);
if (!defined($dir)) {
diff -Nurp a/ltp-full-20130109/testcases/kernel/containers/netns/par_ftp.sh 
b/ltp-full-20130109/testcases/kernel/containers/netns/par_ftp.sh
--- a/ltp-full-20130109/testcases/kernel/containers/netns/par_ftp.sh    
2013-01-09 02:07:20.000000000 -0700
+++ b/ltp-full-20130109/testcases/kernel/containers/netns/par_ftp.sh    
2013-02-20 00:32:18.000000000 -0700
@@ -32,6 +32,7 @@ TST_COUNT=1
export TCID
export TST_COUNT
export TST_TOTAL
+export PATH=$PATH:`dirname $0`
     ping -q -c 2 $IP2 > /dev/null
diff -Nurp a/ltp-full-20130109/testcases/kernel/containers/netns/rename_net.sh 
b/ltp-full-20130109/testcases/kernel/containers/netns/rename_net.sh
--- a/ltp-full-20130109/testcases/kernel/containers/netns/rename_net.sh 
2013-01-09 02:07:20.000000000 -0700
+++ b/ltp-full-20130109/testcases/kernel/containers/netns/rename_net.sh 
2013-02-20 00:32:59.000000000 -0700
@@ -30,6 +30,7 @@ TST_COUNT=1
export TCID
export TST_COUNT
export TST_TOTAL
+export PATH=$PATH:`dirname $0`
     # Find the free dev name
     for i in `seq 1 100`


Containers testcase is passed with mentioned above code changes.


Could you please let me know that above code changes are valid or not ? Please 
suggest me if there are any other solutions to resolve above error.

Any help would be appreciated !!!!

Thanks,
Bhushan

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to