pyflakes

parent 6c991e4d
...@@ -802,7 +802,7 @@ class TestSlapgridCPWithMasterPromise(MasterMixin, unittest.TestCase): ...@@ -802,7 +802,7 @@ class TestSlapgridCPWithMasterPromise(MasterMixin, unittest.TestCase):
self.started = False self.started = False
instance_path = self._create_instance('0') instance_path = self._create_instance('0')
software_hash = self._bootstrap() self._bootstrap()
promise_path = os.path.join(instance_path, 'etc', 'promise') promise_path = os.path.join(instance_path, 'etc', 'promise')
os.makedirs(promise_path) os.makedirs(promise_path)
...@@ -863,7 +863,7 @@ exit 127""" % {'worked_file': worked_file}) ...@@ -863,7 +863,7 @@ exit 127""" % {'worked_file': worked_file})
self.started = False self.started = False
instance_path = self._create_instance('0') instance_path = self._create_instance('0')
software_hash = self._bootstrap() self._bootstrap()
promise_path = os.path.join(instance_path, 'etc', 'promise') promise_path = os.path.join(instance_path, 'etc', 'promise')
os.makedirs(promise_path) os.makedirs(promise_path)
...@@ -928,7 +928,7 @@ exit 0""" % {'worked_file': worked_file}) ...@@ -928,7 +928,7 @@ exit 0""" % {'worked_file': worked_file})
self.started = False self.started = False
instance_path = self._create_instance('0') instance_path = self._create_instance('0')
software_hash = self._bootstrap() self._bootstrap()
promise_path = os.path.join(instance_path, 'etc', 'promise') promise_path = os.path.join(instance_path, 'etc', 'promise')
os.makedirs(promise_path) os.makedirs(promise_path)
...@@ -996,7 +996,7 @@ exit 127""" % {'worked_file': worked_file}) ...@@ -996,7 +996,7 @@ exit 127""" % {'worked_file': worked_file})
self.started = False self.started = False
instance_path = self._create_instance('0') instance_path = self._create_instance('0')
software_hash = self._bootstrap() self._bootstrap()
promise_path = os.path.join(instance_path, 'etc', 'promise') promise_path = os.path.join(instance_path, 'etc', 'promise')
os.makedirs(promise_path) os.makedirs(promise_path)
...@@ -1058,7 +1058,7 @@ exit 0""" % {'worked_file': worked_file}) ...@@ -1058,7 +1058,7 @@ exit 0""" % {'worked_file': worked_file})
self.started = False self.started = False
instance_path = self._create_instance('0') instance_path = self._create_instance('0')
software_hash = self._bootstrap() self._bootstrap()
promise_path = os.path.join(instance_path, 'etc', 'promise') promise_path = os.path.join(instance_path, 'etc', 'promise')
os.makedirs(promise_path) os.makedirs(promise_path)
...@@ -1130,7 +1130,7 @@ exit 0""" % {'worked_file': worked_file_2}) ...@@ -1130,7 +1130,7 @@ exit 0""" % {'worked_file': worked_file_2})
self.started = False self.started = False
instance_path = self._create_instance('0') instance_path = self._create_instance('0')
software_hash = self._bootstrap() self._bootstrap()
promise_path = os.path.join(instance_path, 'etc', 'promise') promise_path = os.path.join(instance_path, 'etc', 'promise')
os.makedirs(promise_path) os.makedirs(promise_path)
...@@ -1144,11 +1144,11 @@ exit 0""" % {'worked_file': worked_file_2}) ...@@ -1144,11 +1144,11 @@ exit 0""" % {'worked_file': worked_file_2})
with open(promise, 'w') as f: with open(promise, 'w') as f:
f.write("""#!/usr/bin/env sh f.write("""#!/usr/bin/env sh
touch "%(worked_file)s" touch "%(worked_file)s"
if [ ! -f %(lockfile)s ] if [ ! -f %(lockfile)s ]
then then
touch "%(lockfile)s" touch "%(lockfile)s"
exit 0 exit 0
else else
exit 127 exit 127
fi""" % {'worked_file': worked_file, 'lockfile': lockfile}) fi""" % {'worked_file': worked_file, 'lockfile': lockfile})
os.chmod(promise, 0777) os.chmod(promise, 0777)
...@@ -1203,7 +1203,7 @@ fi""" % {'worked_file': worked_file, 'lockfile': lockfile}) ...@@ -1203,7 +1203,7 @@ fi""" % {'worked_file': worked_file, 'lockfile': lockfile})
self.started = False self.started = False
instance_path = self._create_instance('0') instance_path = self._create_instance('0')
software_hash = self._bootstrap() self._bootstrap()
promise_path = os.path.join(instance_path, 'etc', 'promise') promise_path = os.path.join(instance_path, 'etc', 'promise')
os.makedirs(promise_path) os.makedirs(promise_path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment