Hi. If declare is bash specific (I have no clue) why not explicitly ask 
for bash in the script?

Just my $0.02.

Elder.


Serge E. Hallyn wrote:
> Quoting Veerendra ([EMAIL PROTECTED]):
>> Signed-off-by: Veerendra C <[EMAIL PROTECTED]>
> 
> Heh, looks ok - I would have jsut used one exit value and only
> set it if it wasn't already non-zero, but the array will work :)
> 
> Acked-by: Serge Hallyn <[EMAIL PROTECTED]>
> 
> Note I don't think declare works in dash, and I don't recall
> whether ltp wants to support dash or not.
> 
> thanks,
> -serge
> 
>> Results:
>> # ./runpidnstest.sh
>> pid_namespace1    0  INFO  :  PIDNS test is running inside container
>>
>> pid_namespace1    1  PASS  :  Success:
>> pid_namespace2    0  INFO  :  Checking session id & group id inside 
>> container
>>
>> pid_namespace2    1  PASS  :  Success: Got Group ID = 1 & Session ID = 1
>>
>> pid_namespace3    0  INFO  :   Checking pid for parent ns and container-init
>>                                 Parent namespace pid = 17052,container 
>> parent pid = 0,and container pid = 1
>>
>> pid_namespace3    1  PASS  :  Got the proc file directory created by 
>> parent ns 17052
>>
>> pid_namespace4    0  INFO  :  PIDNS test is running inside container
>> pid_namespace4    1  FAIL  :  Container init is killed by SIGKILL !!!
>> pid_namespace4    2  FAIL  :  Container init pid got killed by signal 9
>> pidns05     0  INFO  :   5 Nested Containers are created
>> pidns05     1  PASS  :  The number of containers killed are 2
>>
>> pidns06     0  INFO  :  Parent: Passing the pid of the process 17062
>> pidns06     1  PASS  :  Container: tried kill() on the parent pid 17062: 
>> errno set to 3 (No such process), as expected
>>
>> pidns06     2  PASS  :  Container: While killing non existent pid errno 
>> set to 3 : No such process, as expected
>>
>> PID Namespace: Test number 4 failed,  exit value is 1
>>
>>
>>
>>
>>
>> Regards
>> Veerendra C
>>
>> -------------------------------------------------------------------------
>> 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
>> Ltp-list@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/ltp-list
> 
> -------------------------------------------------------------------------
> 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
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
> 
> 


-------------------------------------------------------------------------
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to