Commit b7a2dc55 authored by Nicolas Wavrant's avatar Nicolas Wavrant

fixup! slaprunner: test support of multiple software release

parent 948f5f54
......@@ -36,6 +36,7 @@ import subprocess
import time
import unittest
from datetime import datetime
from lxml import etree
from lxml.html import soupparser
......@@ -359,6 +360,7 @@ class TestSlapProxyIntegration(SlaprunnerTestCase):
return resp
def _buildAndRun(self):
start_date = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
self.logger.debug('Running Build&Run')
self._call('runSoftwareProfile')
while True:
......@@ -376,7 +378,7 @@ class TestSlapProxyIntegration(SlaprunnerTestCase):
continue
if result['software']['success'] == 0:
if result['instance']['success'] == 0:
if result['instance']['success'] == 0 and start_date < result['instance']['last_build'].encode():
self.logger.debug('Instance is up!')
# Done
return
......
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