Commit e59f85be authored by Marco Mariani's avatar Marco Mariani

grammar nazi

parent c0cf24d1
...@@ -292,7 +292,8 @@ class SlaprunnerTestCase(unittest.TestCase): ...@@ -292,7 +292,8 @@ class SlaprunnerTestCase(unittest.TestCase):
#Check git configuration #Check git configuration
config = open(os.path.join(realFolder, '.git/config')).read() config = open(os.path.join(realFolder, '.git/config')).read()
assert "slaprunner@nexedi.com" in config and "Slaprunner test" in config assert "slaprunner@nexedi.com" in config and "Slaprunner test" in config
#Checkout to slaprunner branch, this supose that branch slaprunner exit
# Checkout to slaprunner branch, this supposes that branch slaprunner exit
response = loadJson(self.app.post('/newBranch', response = loadJson(self.app.post('/newBranch',
data=dict( data=dict(
project=folder, project=folder,
...@@ -331,8 +332,9 @@ class SlaprunnerTestCase(unittest.TestCase): ...@@ -331,8 +332,9 @@ class SlaprunnerTestCase(unittest.TestCase):
assert software in currentSR assert software in currentSR
self.assertFalse(isInstanceRunning(self.app.config)) self.assertFalse(isInstanceRunning(self.app.config))
self.assertFalse(isSoftwareRunning(self.app.config)) self.assertFalse(isSoftwareRunning(self.app.config))
#Slapproxy process is supose to be started
#newSoftware = os.path.join(self.software, 'slaprunner-test') # Slapproxy process is supposed to be started
# newSoftware = os.path.join(self.software, 'slaprunner-test')
self.proxyStatus(True) self.proxyStatus(True)
self.stopSlapproxy() self.stopSlapproxy()
self.logout() self.logout()
...@@ -358,8 +360,9 @@ class SlaprunnerTestCase(unittest.TestCase): ...@@ -358,8 +360,9 @@ class SlaprunnerTestCase(unittest.TestCase):
content=softwareRelease), content=softwareRelease),
follow_redirects=True)) follow_redirects=True))
self.assertEqual(response['result'], "") self.assertEqual(response['result'], "")
#Compile software and wait until slapgrid it end
#this is supose to use curent SR # Compile software and wait until slapgrid ends
# this is supposed to use current SR
response = loadJson(self.app.post('/runSoftwareProfile', response = loadJson(self.app.post('/runSoftwareProfile',
data=dict(), data=dict(),
follow_redirects=True)) follow_redirects=True))
......
...@@ -265,8 +265,8 @@ def runSoftwareWithLock(config): ...@@ -265,8 +265,8 @@ def runSoftwareWithLock(config):
def config_SR_folder(config): def config_SR_folder(config):
"""Create a symbolik link for each folder in software folder. That allow """Create a symbolik link for each folder in software folder. That allows
user to customize software release folder""" the user to customize software release folder"""
list = [] list = []
# XXX-Marco do not shadow 'list' # XXX-Marco do not shadow 'list'
config_name = 'slaprunner.config' config_name = 'slaprunner.config'
...@@ -280,8 +280,8 @@ def config_SR_folder(config): ...@@ -280,8 +280,8 @@ def config_SR_folder(config):
folder_list = os.listdir(config['software_root']) folder_list = os.listdir(config['software_root'])
if len(folder_list) < 1: if len(folder_list) < 1:
return return
curent_project = open(os.path.join(config['etc_dir'], ".project")).read() current_project = open(os.path.join(config['etc_dir'], ".project")).read()
projects = curent_project.split("/") projects = current_project.split('/')
name = projects[len(projects) - 2] name = projects[len(projects) - 2]
for folder in folder_list: for folder in folder_list:
if folder in list: if folder in list:
...@@ -297,7 +297,7 @@ def config_SR_folder(config): ...@@ -297,7 +297,7 @@ def config_SR_folder(config):
os.symlink(source, destination) os.symlink(source, destination)
#write config file #write config file
cf = open(cfg, 'w') cf = open(cfg, 'w')
cf.write(curent_project + "#" + folder) cf.write(current_project + "#" + folder)
cf.close() cf.close()
......
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