Mike,

What do you think about this ?

Regards--
Subrata

On Thu, 2008-10-02 at 17:45 -0300, Elder Costa wrote:
> Under Ubuntu several network stress tests fail due to the use of bash 
> specific syntax that Ubuntu's sh (aka dash) does not support.
> 
> I have managed to work around them by simply changing the headers of all 
> the scripts from #!/bin/sh to #!/bin/bash.
> 
> I would like to suggest this change as I think it will have no impact 
> over other Linux distros.
> 
> I am attaching a script instead of a patch as the latter would be too 
> BIG for the task.
> 
> Regards.
> 
> Elder.
> 
> Signed-Off-By: Elder Costa <[EMAIL PROTECTED]>
> plain text document attachment (patch_network_stress)
> #!/bin/sh
> 
> if [ $# -ne 1 ]; then
>       echo "Usage: $0 LTP_ROOT"
>       exit 1
> fi
> 
> STRESS_DIR="$1/testcases/network/stress"
> ls -ld ${STRESS_DIR} 1>/dev/null 2>/dev/null
> if [ $? -ne 0 ]; then
>       echo "Invalid LTP_ROOT"
>       exit 1
> fi
> 
> cd ${STRESS_DIR}
> 
> find . -type f | xargs sed -i s/'\/bin\/sh'/'\/bin\/bash'/
> -------------------------------------------------------------------------
> 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


-------------------------------------------------------------------------
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