Browse Source

Better way of calling setup scripts without tmp

msmith-techempower 10 years ago
parent
commit
cb589de6dd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      toolset/benchmark/framework_test.py

+ 1 - 1
toolset/benchmark/framework_test.py

@@ -212,7 +212,7 @@ class FrameworkTest:
     # See http://www.pixelbeat.org/programming/stdio_buffering/
     # See http://www.pixelbeat.org/programming/stdio_buffering/
     # See https://blogs.gnome.org/markmc/2013/06/04/async-io-and-python/
     # See https://blogs.gnome.org/markmc/2013/06/04/async-io-and-python/
     # See http://eyalarubas.com/python-subproc-nonblock.html
     # See http://eyalarubas.com/python-subproc-nonblock.html
-    command = 'cat %s %s.sh > /tmp/command.sh && sudo -u %s -E -H stdbuf -o0 -e0 bash -ex /tmp/command.sh' % (
+    command = 'cat %s %s.sh | sudo -u %s -E -H stdbuf -o0 -e0 bash -ex' % (
       bash_functions_path, 
       bash_functions_path, 
       os.path.join(self.troot, self.setup_file), 
       os.path.join(self.troot, self.setup_file), 
       self.benchmarker.runner_user)
       self.benchmarker.runner_user)