Skip to contentSkip to conversation

KVM test: setuprss.bat: use 'netsh advfirewall' to disable firewall

PATCH New Michael Goldish 1 participant 3 messages Jun 29, 2010 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM test: setuprss.bat: use 'netsh advfirewall' to disable firewall

In addition to 'netsh firewall ...' use 'netsh advfirewall ...' which seems to be the preferred way of changing firewall settings in Win7. ('netsh firewall ...' results in the firewall being disabled only for one type of network (e.g. public networks) but not for the other (home networks).)

---
 client/tests/kvm/deps/setuprss.bat |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
client/tests/kvm/deps/setuprss.bat +1 -0
index 82d620d..1adff0f 100644
@@ -5,6 +5,7 @@ copy %rsspath% C:\rss.exe
 net user Administrator /active:yes
 net user Administrator 1q2w3eP
 netsh firewall set opmode disable
+netsh advfirewall set allprofiles state off
 powercfg /G OFF /OPTION RESUMEPASSWORD
 
 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v "Remote Shell Server" /d "C:\rss.exe 22" /t REG_SZ /f
Signature · 1 line
1.5.4.1
#1 lore raw

PATCH 1/1 KVM test: setuprss.bat: let rss.exe use its default ports

Don't tell rss.exe to use port 22.

---
 client/tests/kvm/deps/setuprss.bat |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
client/tests/kvm/deps/setuprss.bat +1 -1
index 1adff0f..97298cd 100644
@@ -8,7 +8,7 @@ netsh firewall set opmode disable
 netsh advfirewall set allprofiles state off
 powercfg /G OFF /OPTION RESUMEPASSWORD
 
-reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v "Remote Shell Server" /d "C:\rss.exe 22" /t REG_SZ /f
+reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v "Remote Shell Server" /d "C:\rss.exe" /t REG_SZ /f
 reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\winlogon" /v "AutoAdminLogon" /d "1" /t REG_SZ /f
 reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\winlogon" /v "DefaultUserName" /d "Administrator" /t REG_SZ /f
 reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\winlogon" /v "DefaultPassword" /d "1q2w3eP" /t REG_SZ /f
Signature · 1 line
1.5.4.1
#2 lore raw

PATCH 1/1 KVM test: kvm.py: add exception class name to failure message

This will result in more informative messages, e.g.:

Test failed: FileTransferConnectError: Could not connect to server

instead of

Test failed: Could not connect to server

---
 client/tests/kvm/kvm.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
client/tests/kvm/kvm.py +2 -1
index 0799cff..9da4c33 100644
@@ -75,7 +75,8 @@ class kvm(test.test):
                     test_passed = True
 
                 except Exception, e:
-                    logging.error("Test failed: %s", e)
+                    logging.error("Test failed: %s: %s",
+                                  e.__class__.__name__, e)
                     try:
                         kvm_preprocessing.postprocess_on_error(
                             self, params, env)
Signature · 1 line
1.5.4.1