[Armadeus-commitlog] armadeus branch, master, updated. armadeus-5.3-199-g672a28c
Brought to you by:
sszy
|
From: Sébastien S. <ss...@us...> - 2014-03-27 14:41:49
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via 672a28ca12ce698a36cd0e2b0ed7ffa48baabd48 (commit)
from fadce244b33bfd7234874044a39e237901f0a7e1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 672a28ca12ce698a36cd0e2b0ed7ffa48baabd48
Author: Sébastien Szymanski <seb...@ar...>
Date: Thu Mar 27 15:40:53 2014 +0100
[TEST SUITE] test_ethernet.sh: Pass the iterface name to test as second argument
-----------------------------------------------------------------------
Summary of changes:
target/test/test_ethernet.sh | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/target/test/test_ethernet.sh b/target/test/test_ethernet.sh
index 8ef0515..9833138 100755
--- a/target/test/test_ethernet.sh
+++ b/target/test/test_ethernet.sh
@@ -34,9 +34,9 @@ test_ethernet()
trap signal_handler INT
# Check if interface is up
- ifconfig eth0
+ ifconfig $2
if [ "$?" != 0 ]; then
- echo "No Ethernet interface found"
+ echo "No Ethernet interface $2 found"
exit_failed
fi
@@ -101,9 +101,19 @@ test_ethernet()
echo_test_ok
}
+ITERATION=3
+INET_NAME=eth0
+
if [ "$1" != "" ]; then
- test_ethernet $1
+ ITERATION="$1"
+else
+ ITERATION=3
+fi
+
+if [ "$2" != "" ]; then
+ INET_NAME="$2"
else
- test_ethernet 3
+ INET_NAME="eth0"
fi
+test_ethernet $ITERATION $INET_NAME
hooks/post-receive
--
armadeus
|