diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2015-09-08 08:33:39 +0000 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2015-09-11 08:50:45 +0000 |
commit | 4c2c16538fb70334e4d3ae3094ebd90b6fdb9b26 (patch) | |
tree | ba53c1d581a276ec2ec2de7779be5469f5aa707d | |
parent | 4127f89dfaac2c5f98d343babb144e00a0eee0e6 (diff) | |
download | definitions-4c2c16538fb70334e4d3ae3094ebd90b6fdb9b26.tar.gz |
Remove baserock build test.
-rwxr-xr-x | scripts/release-test-os | 52 |
1 files changed, 9 insertions, 43 deletions
diff --git a/scripts/release-test-os b/scripts/release-test-os index 00699ca3..4c3932a5 100755 --- a/scripts/release-test-os +++ b/scripts/release-test-os @@ -416,53 +416,19 @@ class ReleaseApp(cliapp.Application): instance.wait_until_online() tests = [] - def baserock_build_test(instance): - instance.runcmd(['git', 'config', '--global', 'user.name', - 'Test Instance of %s' % instance.deployment.name]) - instance.runcmd(['git', 'config', '--global', 'user.email', - 'ci-test@%s' % instance.config['HOSTNAME']]) - instance.runcmd(['mkdir', '-p', '/src/ws', '/src/cache', - '/src/tmp']) - def morph_cmd(*args, **kwargs): - # TODO: decide whether to use cached artifacts or not by - # adding --artifact-cache-server= --cache-server= - argv = ['morph', '--log=/src/morph.log', '--cachedir=/src/cache', - '--tempdir=/src/tmp', '--log-max=100M', - '--trove-host', trove_host, '--trove-id', trove_id, - '--build-ref-prefix', build_ref_prefix] - argv.extend(args) - instance.runcmd(argv, **kwargs) - - repo = morph_helper.sb.root_repository_url - ref = morph_helper.defs_repo.HEAD - sha1 = morph_helper.defs_repo.resolve_ref_to_commit(ref) - morph_cmd('init', '/src/ws') - chdir = '/src/ws' - - morph_cmd('checkout', repo, ref, chdir=chdir) - # TODO: Add a morph subcommand that gives the path to the root repository. - repo_path = os.path.relpath( - morph_helper.sb.get_git_directory_name(repo), - morph_helper.sb.root_directory) - chdir = os.path.join(chdir, ref, repo_path) - - instance.runcmd(['git', 'reset', '--hard', sha1], chdir=chdir) - print 'Building test systems for {sys}'.format(sys=system_path) - for to_build_path, to_build_morph in systems.iteritems(): - if to_build_morph['arch'] == system_morph['arch']: - print 'Test building {path}'.format(path=to_build_path) - morph_cmd('build', to_build_path, chdir=chdir, - stdin=None, stdout=None, stderr=None) - print 'Finished Building test systems' + + def uname_test(instance): + print('# uname test'); + instance.runcmd(['uname', '-a'], stdout=self.output) def python_smoke_test(instance): - instance.runcmd(['python', '-c', 'print "Hello World"']) + print('# python test') + instance.runcmd(['python', '-c', 'print "Hello World"'], + stdout=self.output) # TODO: Come up with a better way of determining which tests to run - if 'devel' in system_path: - tests.append(baserock_build_test) - else: - tests.append(python_smoke_test) + tests.append(uname_test) + tests.append(python_smoke_test) for test in tests: test(instance) |