~james-page/ubuntu-openstack-ci/drop-tox-from-slave-config

« back to all changes in this revision

Viewing changes to run/job-parts/deprecated/build_foo.py

  • Committer: Ryan Beisner
  • Date: 2018-12-13 21:10:41 UTC
  • mto: This revision was merged to the branch mainline in revision 409.
  • Revision ID: ryan.beisner@canonical.com-20181213211041-5xw4jn4u17ujbv6o
Actually remove the deprecated things

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python3
2
 
"""
3
 
Check some commands
4
 
"""
5
 
import logging
6
 
import subprocess
7
 
import sys
8
 
 
9
 
# Set default logging level
10
 
logging.basicConfig(level=logging.DEBUG)
11
 
 
12
 
 
13
 
def main():
14
 
    """
15
 
    Check commands
16
 
    """
17
 
    cmds = [
18
 
        'juju version',
19
 
        'which juju',
20
 
    ]
21
 
 
22
 
    for cmd in cmds:
23
 
        logging.info('subprocess call: {}'.format(cmd))
24
 
        subprocess.check_call(cmd.split(' '))
25
 
 
26
 
 
27
 
if __name__ == '__main__':
28
 
    logging.info('init: {}'.format(sys.argv[0]))
29
 
    sys.exit(main())