Skip to content

Commit

Permalink
test: Add image-prepare --network option
Browse files Browse the repository at this point in the history
This is useful for experimentation.
  • Loading branch information
martinpitt committed Jan 29, 2025
1 parent 91ad819 commit a7af6d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/image-prepare
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,15 @@ def main():
parser.add_argument('-q', '--quick', action='store_true', help='Skip unit tests to build faster')
parser.add_argument('-o', '--overlay', action='store_true',
help='Install into existing test/image/ overlay instead of from pristine base image')
parser.add_argument('--network', action='store_true',
help='Enable internet access (only for local experiments, not for production!)')
parser.add_argument('--container', action='store_true', help='Install cockpit/ws container instead of rpms')
parser.add_argument('image', nargs='?', default=DEFAULT_IMAGE, help='The image to use')
args = parser.parse_args()

customize = [os.path.join(BOTS_DIR, "image-customize"), "--no-network"]
customize = [os.path.join(BOTS_DIR, "image-customize")]
if not args.network:
customize.append("--no-network")
if not args.overlay:
customize.append("--fresh")
if args.verbose:
Expand Down

0 comments on commit a7af6d8

Please sign in to comment.