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