Make the ./run script executable
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 @@
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 @@
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 @@
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