| |
@@ -1,10 +1,13 @@
|
| |
- #! /usr/bin/env python
|
| |
+ #!/usr/bin/env -S python -u
|
| |
|
| |
import argparse
|
| |
import os
|
| |
import subprocess as sp
|
| |
|
| |
|
| |
+ ROOT = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
| |
+
|
| |
+
|
| |
def setup_parser():
|
| |
""" Setup the cli arguments """
|
| |
parser = argparse.ArgumentParser(prog="pagure-test")
|
| |
@@ -84,6 +87,8 @@
|
| |
]
|
| |
|
| |
failed = []
|
| |
+ print("Running for {} containers:".format(len(container_names)))
|
| |
+ print(" - " + "\n - ".join(container_names))
|
| |
for idx, container_name in enumerate(container_names):
|
| |
if args.skip_build is not False:
|
| |
print("------ Building Container Image -----")
|
| |
@@ -98,8 +103,8 @@
|
| |
"-t",
|
| |
container_name,
|
| |
"-f",
|
| |
- "dev/containers/%s" % container_files[idx],
|
| |
- "dev/containers",
|
| |
+ ROOT + "/dev/containers/%s" % container_files[idx],
|
| |
+ ROOT + "/dev/containers",
|
| |
]
|
| |
print(" ".join(cmd))
|
| |
output_code = sp.call(cmd)
|
| |
Splitting #5180 for easier review.