public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/1] network: fix bashisms + shebang
@ 2016-11-08 18:05 Petr Vorel
  2016-11-09 11:44 ` Alexey Kodanev
  0 siblings, 1 reply; 2+ messages in thread
From: Petr Vorel @ 2016-11-08 18:05 UTC (permalink / raw)
  To: ltp

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/network/nfs/nfs_stress/nfs_lib.sh | 1 +
 testcases/network/sockets/ltpSockets.sh     | 4 ++--
 testcases/network/virt/virt_lib.sh          | 3 ++-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/testcases/network/nfs/nfs_stress/nfs_lib.sh b/testcases/network/nfs/nfs_stress/nfs_lib.sh
index 78df4d3..0abf39d 100644
--- a/testcases/network/nfs/nfs_stress/nfs_lib.sh
+++ b/testcases/network/nfs/nfs_stress/nfs_lib.sh
@@ -1,3 +1,4 @@
+#!/bin/sh
 # Copyright (c) 2015-2016 Oracle and/or its affiliates. All Rights Reserved.
 # Copyright (c) International Business Machines  Corp., 2001
 #
diff --git a/testcases/network/sockets/ltpSockets.sh b/testcases/network/sockets/ltpSockets.sh
index 48fa8c6..65b2320 100755
--- a/testcases/network/sockets/ltpSockets.sh
+++ b/testcases/network/sockets/ltpSockets.sh
@@ -54,10 +54,10 @@ echo "Starting UDP, TCP and Multicast tests..."
 echo "Starting ltpServer..."
 
 ./ltpServer $hostname1 &
-sleep 5s
+sleep 5
 echo "Starting ltpClient..."
 ./ltpClient $hostname1 $hostname1 $testdata
-sleep 1s
+sleep 1
 killall -9 ltpServer
 killall -9 ltpClient
 
diff --git a/testcases/network/virt/virt_lib.sh b/testcases/network/virt/virt_lib.sh
index ee6488c..df453e5 100644
--- a/testcases/network/virt/virt_lib.sh
+++ b/testcases/network/virt/virt_lib.sh
@@ -103,7 +103,8 @@ trap "tst_brkm TBROK 'test interrupted'" INT
 virt_add()
 {
 	local vname=$1
-	local opt="${@:2}"
+	shift
+	local opt="$*"
 
 	case $virt_type in
 	vlan|vxlan)
-- 
2.10.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [LTP] [PATCH 1/1] network: fix bashisms + shebang
  2016-11-08 18:05 [LTP] [PATCH 1/1] network: fix bashisms + shebang Petr Vorel
@ 2016-11-09 11:44 ` Alexey Kodanev
  0 siblings, 0 replies; 2+ messages in thread
From: Alexey Kodanev @ 2016-11-09 11:44 UTC (permalink / raw)
  To: ltp

On 11/08/2016 09:05 PM, Petr Vorel wrote:
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
>   testcases/network/nfs/nfs_stress/nfs_lib.sh | 1 +
>   testcases/network/sockets/ltpSockets.sh     | 4 ++--
>   testcases/network/virt/virt_lib.sh          | 3 ++-
>   3 files changed, 5 insertions(+), 3 deletions(-)

Patch applied. Thank you!

Best regards,
Alexey


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-09 11:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-08 18:05 [LTP] [PATCH 1/1] network: fix bashisms + shebang Petr Vorel
2016-11-09 11:44 ` Alexey Kodanev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox