parser=argparse.ArgumentParser(description='Given a list of containers as input and a number of shards, '
'finds an approximation of the optimal distribution of the containers over the shards, provided a set of hard-coded weights '
'in parsefiles_config.yml.')
parser.add_argument('containers',help="the Dockerfiles that need to be built as the result of some commit change and whose coverage is checked")
parser=argparse.ArgumentParser(description='Given a list of images as input checks that each input image is described correctly in parsefiles_config.yml')
parser.add_argument('images',help="the Dockerfiles that need to be built as the result of some commit change and whose coverage is checked")
returnparser.parse_args()
if__name__=='__main__':
...
...
@@ -56,9 +42,13 @@ if __name__ == '__main__':
# configure logging
logging.basicConfig()
containers=[]
# read input
images=[]
foriinargs.images.split():
images.append(i)
forwordinargs.containers.split():
containers.append(word)
# get images that are used and described in configuration file