Hi Subrata

Here is a patch to fix the error below.

/root/ltp-full-20081031/testcases/kernel/containers/netns/parentns.sh: 42: 
source: not found

Some shells are not having the cmd 'source' which inturn are failing the tests 
for netns in containers.
Like the abat job : 204849
http://abat.linux.ibm.com/abat-repo/logs/[EMAIL 
PROTECTED]/cont_ppc64:1/debug/test.log.1

I found few other ltp scripts are using the source cmd. Have others reported 
the same issue ? Just curious to know this .

The below patch would replace the 'source with .' for containers in netns.

Thanks
Veerendra C








Index: tmp/ltp-full-20081031/testcases/kernel/containers/netns/child_1.sh
===================================================================
--- tmp.orig/ltp-full-20081031/testcases/kernel/containers/netns/child_1.sh
+++ tmp/ltp-full-20081031/testcases/kernel/containers/netns/child_1.sh
@@ -29,7 +29,7 @@ export TCID
 export TST_COUNT
 export TST_TOTAL
 
-source initialize.sh
+. initialize.sh
 
     # Writing child PID number into /tmp/FIFO
     echo $$ > /tmp/FIFO2
Index: tmp/ltp-full-20081031/testcases/kernel/containers/netns/child_2.sh
===================================================================
--- tmp.orig/ltp-full-20081031/testcases/kernel/containers/netns/child_2.sh
+++ tmp/ltp-full-20081031/testcases/kernel/containers/netns/child_2.sh
@@ -28,7 +28,7 @@ TST_COUNT=1
 export TCID
 export TST_COUNT
 export TST_TOTAL
-source initialize.sh
+. initialize.sh
 status=0
 
     # Writing child PID number into /tmp/FIFO4
Index: tmp/ltp-full-20081031/testcases/kernel/containers/netns/childipv6.sh
===================================================================
--- tmp.orig/ltp-full-20081031/testcases/kernel/containers/netns/childipv6.sh
+++ tmp/ltp-full-20081031/testcases/kernel/containers/netns/childipv6.sh
@@ -37,7 +37,7 @@ TST_COUNT=1
 export TCID
 export TST_COUNT
 export TST_TOTAL
-source  initialize.sh
+.  initialize.sh
 status=0
     
     # Passing the PID of child 
Index: tmp/ltp-full-20081031/testcases/kernel/containers/netns/childns.sh
===================================================================
--- tmp.orig/ltp-full-20081031/testcases/kernel/containers/netns/childns.sh
+++ tmp/ltp-full-20081031/testcases/kernel/containers/netns/childns.sh
@@ -38,7 +38,7 @@ TST_COUNT=1
 export TCID
 export TST_COUNT
 export TST_TOTAL
-source  initialize.sh
+.  initialize.sh
 status=0
     
     if [ $# == 1 ] ; then
@@ -77,7 +77,7 @@ status=0
     fi
     
     if [ -f  $childscrpt ]; then
-        source $childscrpt
+        . $childscrpt
     fi
     
     cleanup $sshpid $vnet1
Index: tmp/ltp-full-20081031/testcases/kernel/containers/netns/parent_1.sh
===================================================================
--- tmp.orig/ltp-full-20081031/testcases/kernel/containers/netns/parent_1.sh
+++ tmp/ltp-full-20081031/testcases/kernel/containers/netns/parent_1.sh
@@ -32,7 +32,7 @@ export TCID
 export TST_COUNT
 export TST_TOTAL
 
-    source initialize.sh
+    . initialize.sh
     echo 1 > /proc/sys/net/ipv4/ip_forward
     echo 1 > /proc/sys/net/ipv4/conf/$netdev/proxy_arp
     create_veth
Index: tmp/ltp-full-20081031/testcases/kernel/containers/netns/parent_2.sh
===================================================================
--- tmp.orig/ltp-full-20081031/testcases/kernel/containers/netns/parent_2.sh
+++ tmp/ltp-full-20081031/testcases/kernel/containers/netns/parent_2.sh
@@ -29,7 +29,7 @@ TST_COUNT=1
 export TCID
 export TST_COUNT
 export TST_TOTAL
-source initialize.sh
+. initialize.sh
 
     create_veth
     vnet2=$dev0
Index: tmp/ltp-full-20081031/testcases/kernel/containers/netns/parentns.sh
===================================================================
--- tmp.orig/ltp-full-20081031/testcases/kernel/containers/netns/parentns.sh
+++ tmp/ltp-full-20081031/testcases/kernel/containers/netns/parentns.sh
@@ -39,7 +39,7 @@ export TCID
 export TST_COUNT
 export TST_TOTAL
 #set -x
-source initialize.sh
+. initialize.sh
 status=0
 
     # Checks if any script is passed as argument.
@@ -78,7 +78,7 @@ status=0
 
     # Executes the script if it is passed as an argument.
     if [ -f $scrpt ] ;  then
-        source $scrpt
+        . $scrpt
     fi
 
     debug "INFO: Done executing parent script $0, status is $status "
Index: tmp/ltp-full-20081031/testcases/kernel/containers/netns/parent_share.sh
===================================================================
--- tmp.orig/ltp-full-20081031/testcases/kernel/containers/netns/parent_share.sh
+++ tmp/ltp-full-20081031/testcases/kernel/containers/netns/parent_share.sh
@@ -36,7 +36,7 @@ export TCID
 export TST_COUNT
 export TST_TOTAL
 ret=0 
-source initialize.sh
+. initialize.sh
 
     mkdir -p /tmp/par_sysfs /tmp/mnt || ret=1
     mount --bind /sys /tmp/par_sysfs || ret=1
Index: tmp/ltp-full-20081031/testcases/kernel/containers/netns/paripv6.sh
===================================================================
--- tmp.orig/ltp-full-20081031/testcases/kernel/containers/netns/paripv6.sh
+++ tmp/ltp-full-20081031/testcases/kernel/containers/netns/paripv6.sh
@@ -39,7 +39,7 @@ TST_COUNT=1
 export TCID
 export TST_COUNT
 export TST_TOTAL
-source initialize.sh
+. initialize.sh
 status=0
 
     # Sets up the infrastructure for creating network NS
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to