diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2014-02-21 12:37:54 +0100 |
---|---|---|
committer | Anders Roxell <anders.roxell@linaro.org> | 2014-02-25 11:44:50 +0100 |
commit | d10b2faa95e703f3f3a7ae7aad14ade93d7fdcce (patch) | |
tree | 86be5e42570263ec1011ca44017a9dfd9c2fec5b | |
parent | e1f3c02f5513926a0683da78f7861f8f86b81f64 (diff) |
netperf-client: fix set local_ip to the correct ip
Change-Id: Iba06b340a348dfe7257493cc9f1d14653f84ad74
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
-rwxr-xr-x | common/scripts/netperf-client.sh | 2 | ||||
-rw-r--r-- | openembedded/netperf-client-multinode.yaml | 2 | ||||
-rw-r--r-- | ubuntu/netperf-client-multinode.yaml | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/common/scripts/netperf-client.sh b/common/scripts/netperf-client.sh index 7ab2032..288cc0f 100755 --- a/common/scripts/netperf-client.sh +++ b/common/scripts/netperf-client.sh @@ -2,7 +2,7 @@ set -x -local_ip=$(ifconfig|grep "inet addr"|grep -v "127.0.0.1"|cut -d: -f2|cut -d' ' -f1) +local_ip=$(ifconfig $1|grep "inet addr"|grep -v "127.0.0.1"|cut -d: -f2|cut -d' ' -f1) for line in `lava-group | grep server | awk '{print $1}'` ; do echo $line diff --git a/openembedded/netperf-client-multinode.yaml b/openembedded/netperf-client-multinode.yaml index 63bf425..e479d54 100644 --- a/openembedded/netperf-client-multinode.yaml +++ b/openembedded/netperf-client-multinode.yaml @@ -28,7 +28,7 @@ run: - lava-network broadcast $ETH - lava-network collect $ETH - lava-sync ready - - lava-test-case multinode-lava-network --shell ./common/scripts/netperf-client.sh + - lava-test-case multinode-lava-network --shell ./common/scripts/netperf-client.sh $ETH - lava-sync done parse: diff --git a/ubuntu/netperf-client-multinode.yaml b/ubuntu/netperf-client-multinode.yaml index 626822a..9f41499 100644 --- a/ubuntu/netperf-client-multinode.yaml +++ b/ubuntu/netperf-client-multinode.yaml @@ -33,7 +33,7 @@ run: - lava-network broadcast $ETH - lava-network collect $ETH - lava-sync ready - - lava-test-case multinode-lava-network --shell ./common/scripts/netperf-client.sh + - lava-test-case multinode-lava-network --shell ./common/scripts/netperf-client.sh $ETH - lava-sync done parse: |