[COMMIT osv-apps master] mysql: enhance test script to run it with vhost/tap networking setup

4 views
Skip to first unread message

Commit Bot

unread,
Nov 27, 2019, 4:06:21 PM11/27/19
to osv...@googlegroups.com, Waldemar Kozaczuk
From: Waldemar Kozaczuk <jwkoz...@gmail.com>
Committer: Waldemar Kozaczuk <jwkoz...@gmail.com>
Branch: master

mysql: enhance test script to run it with vhost/tap networking setup

Signed-off-by: Waldemar Kozaczuk <jwkoz...@gmail.com>

---
diff --git a/mysql/test.sh b/mysql/test.sh
--- a/mysql/test.sh
+++ b/mysql/test.sh
@@ -3,9 +3,15 @@
THIS_DIR=$(readlink -f $(dirname $0))
CMDLINE=$($THIS_DIR/../cmdline.sh $THIS_DIR)

+if [ "$OSV_HYPERVISOR" == "firecracker" ]; then
$THIS_DIR/../../scripts/tests/test_app_with_test_script.py \
-e "$CMDLINE" \
- --guest_port 3306 \
- --host_port 3306 \
--start_line 'ready for connections' \
--script_path $THIS_DIR/tester.py
+else
+sudo $THIS_DIR/../../scripts/tests/test_app_with_test_script.py \
+ -e "$CMDLINE" \
+ --vhost \
+ --start_line 'ready for connections' \
+ --script_path $THIS_DIR/tester.py
+fi
Reply all
Reply to author
Forward
0 new messages