Add more escaping for the HOSTS setting code

Change-Id: I0660b6c8b07a4b434664ff6f635825fc05b20a39
diff --git a/test/test-common b/test/test-common
index 106cf83..ea92d8b 100755
--- a/test/test-common
+++ b/test/test-common
@@ -99,7 +99,7 @@
 }
 
 start_logging () {
-    all_hosts "echo HOSTS=\"$HOSTS\" > test-config"
+    all_hosts "echo HOSTS=\\\"$HOSTS\\\" > test-config"
 }
 
 stop_logging () {