1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 22:32:14 +00:00

test custom kernel and docker build and boot

This commit is contained in:
Ivan Mikushin
2015-09-09 18:53:04 +05:00
parent 0c196f557b
commit 168d340b76
7 changed files with 66 additions and 12 deletions

View File

@@ -33,6 +33,16 @@ def with_effect(p):
return effect
def rancheros_version(build_conf):
with open(build_conf) as f:
for v in it.ifilter(non_empty,
it.imap(parse_value('VERSION'),
it.ifilter(non_empty,
it.imap(strip_comment('#'), iter_lines(f))))):
return v
raise RuntimeError("Could not parse RancherOS version")
def run_qemu(request, run_args=[]):
subprocess.check_call('rm -f ./state/empty-hd.img', shell=True)
print('\nrm ./state/*')