Minor fixes to tests
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py
index d0ab5b2..0558360 100755
--- a/tools/run_tests/run_tests.py
+++ b/tools/run_tests/run_tests.py
@@ -422,7 +422,7 @@
 
   def build_steps(self):
     if self.platform == 'windows':
-      if config == 'dbg':
+      if self.config == 'dbg':
         config_flag = '--debug'
       else:
         config_flag = '--release'