trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject trafficserver-qa git commit: Make the ./run script executable
Date Mon, 11 May 2015 17:03:17 GMT
Repository: trafficserver-qa
Updated Branches:
  refs/heads/master 9ba51c9a2 -> c4cc41866


Make the ./run script executable


Project: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/commit/c4cc4186
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/tree/c4cc4186
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/diff/c4cc4186

Branch: refs/heads/master
Commit: c4cc4186684a4f997e775dc747618f65b2753d02
Parents: 9ba51c9
Author: James Peach <jpeach@apache.org>
Authored: Mon May 11 10:03:05 2015 -0700
Committer: James Peach <jpeach@apache.org>
Committed: Mon May 11 10:03:05 2015 -0700

----------------------------------------------------------------------
 tsqa/environment.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver-qa/blob/c4cc4186/tsqa/environment.py
----------------------------------------------------------------------
diff --git a/tsqa/environment.py b/tsqa/environment.py
index 0e5c78d..3064fb8 100644
--- a/tsqa/environment.py
+++ b/tsqa/environment.py
@@ -261,7 +261,7 @@ class Environment(object):
     This is the core of tsqa. An environment is a directory (effectively a root dir)
     with code and configs installed into it. This object is also responsible for
     the daemon that will run out of this environment. All environments should be
-    sandboxed (seperate directories), and failures in one environment should not
+    sandboxed (separate directories), and failures in one environment should not
     cause failures in other environments.
 
     '''
@@ -412,7 +412,7 @@ class Environment(object):
         os.chmod(os.path.join(os.path.dirname(self.layout.runtimedir)), 0777)
         os.chmod(os.path.join(self.layout.runtimedir), 0777)
 
-        # write out a conveinence script to
+        # write out a convenience script to
         with open(os.path.join(self.layout.prefix, 'run'), 'w') as runscript:
             runscript.write('#! /usr/bin/env sh\n\n')
             runscript.write('# run PROGRAM [ARGS ...]\n')
@@ -422,6 +422,9 @@ class Environment(object):
                 runscript.write('export {0}\n\n'.format(k))
             runscript.write('exec "$@"\n')
 
+        os.chmod(os.path.join(self.layout.prefix, 'run'), 0755)
+
+
     def destroy(self):
         """
         Tear down the environment. Kill any running processes and remove any


Mime
View raw message