Browse Source

Cleaning up curl verification output

Hamilton Turner 10 years ago
parent
commit
99d0ef1147
1 changed files with 2 additions and 2 deletions
  1. 2 2
      toolset/benchmark/test_types/framework_test_type.py

+ 2 - 2
toolset/benchmark/test_types/framework_test_type.py

@@ -64,6 +64,8 @@ class FrameworkTestType:
     # Don't use -f so that the HTTP response code is ignored.
     # Don't use -f so that the HTTP response code is ignored.
     # Use -sS to hide progress bar, but show errors.
     # Use -sS to hide progress bar, but show errors.
     print "Accessing URL %s" % url
     print "Accessing URL %s" % url
+    self.err.write("Accessing URL %s \n" % url)
+    self.out.write("Accessing URL %s \n" % url)
     p = subprocess.Popen(["curl", "-m", "15", "-i", "-sS", url], stderr=PIPE, stdout=PIPE)
     p = subprocess.Popen(["curl", "-m", "15", "-i", "-sS", url], stderr=PIPE, stdout=PIPE)
     (out, err) = p.communicate()
     (out, err) = p.communicate()
     self.err.write(err+'\n')
     self.err.write(err+'\n')
@@ -73,8 +75,6 @@ class FrameworkTestType:
     # Get response body
     # Get response body
     p = subprocess.Popen(["curl", "-m", "15", "-s", url], stdout=PIPE, stderr=PIPE)
     p = subprocess.Popen(["curl", "-m", "15", "-s", url], stdout=PIPE, stderr=PIPE)
     (out, err) = p.communicate()
     (out, err) = p.communicate()
-    self.err.write(err+'\n')
-    self.out.write(out+'\n')
     return out
     return out
   
   
   def verify(self, base_url):
   def verify(self, base_url):