group = parser.add_argument_group("Packages")
group.add_argument('-p', "--package", action=PackageAction, dest='packages', help='Add an additional package to the OS image', metavar='PACKAGE')
group.add_argument("--with-docs", action='store_true', help='Install documentation (only Fedora, CentOS and Mageia)')
+ group.add_argument('-T', "--without-tests", action='store_false', dest='with_tests', default=True, help='Do not run tests as part of build script, if supported')
group.add_argument("--cache", dest='cache_path', help='Package cache path', metavar='PATH')
group.add_argument("--extra-tree", action='append', dest='extra_trees', help='Copy an extra tree on top of image', metavar='PATH')
group.add_argument("--build-script", help='Build script to run inside image', metavar='PATH')
elif key == "WithDocs":
if not args.with_docs:
args.with_docs = parse_boolean(value)
+ elif key == "WithTests":
+ if not args.with_tests:
+ args.with_tests = parse_boolean(value)
elif key == "Cache":
if args.cache_path is None:
args.cache_path = value
sys.stderr.write(" Package Cache: " + none_to_none(args.cache_path) + "\n")
sys.stderr.write(" Extra Trees: " + line_join_list(args.extra_trees) + "\n")
sys.stderr.write(" Build Script: " + none_to_none(args.build_script) + "\n")
+
+ if args.build_script:
+ sys.stderr.write(" Run tests: " + yes_no(args.with_tests) + "\n")
+
sys.stderr.write(" Build Sources: " + none_to_none(args.build_sources) + "\n")
sys.stderr.write(" Build Directory: " + none_to_none(args.build_dir) + "\n")
sys.stderr.write(" Build Packages: " + line_join_list(args.build_packages) + "\n")
"--bind", dest + ":/root/dest",
"--bind=" + var_tmp(workspace) + ":/var/tmp",
"--setenv=WITH_DOCS=" + ("1" if args.with_docs else "0"),
+ "--setenv=WITH_TESTS=" + ("1" if args.with_tests else "0"),
"--setenv=DESTDIR=/root/dest"]
if args.build_sources is not None: