solve '~' expansion for tests.

bzr-import-20160707
Celso Providelo 10 years ago
parent 8ffc7049b5
commit df62c7fcf7

@ -130,9 +130,8 @@ class BootTest(object):
"RUNNING": '<span style="background:#99ddff">Test in progress</span>', "RUNNING": '<span style="background:#99ddff">Test in progress</span>',
} }
#script_path = os.path.expanduser( script_path = os.path.expanduser(
# "~/auto-package-testing/jenkins/boottest-britney") "~/auto-package-testing/jenkins/boottest-britney")
script_path = 'boottest/jenkins/boottest-britney'
def __init__(self, britney, distribution, series, debug=False): def __init__(self, britney, distribution, series, debug=False):
self.britney = britney self.britney = britney

@ -161,8 +161,8 @@ class TestBoottestEnd2End(TestBase):
def make_boottest(self): def make_boottest(self):
"""Create a stub version of boottest-britney script.""" """Create a stub version of boottest-britney script."""
script_path = os.path.join( script_path = os.path.expanduser(
self.data.path, 'boottest/jenkins/boottest-britney') "~/auto-package-testing/jenkins/boottest-britney")
os.makedirs(os.path.dirname(script_path)) os.makedirs(os.path.dirname(script_path))
with open(script_path, 'w') as f: with open(script_path, 'w') as f:
f.write('''#!%(py)s f.write('''#!%(py)s

Loading…
Cancel
Save