cmd: --blueprint
Moves the blueprint argument to a named argument; freeing up space to later be able to pass in multiple image types. This also slightly simplifies the case where we're building without a blueprint available. Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
This commit is contained in:
parent
ffb22eb837
commit
c1c60a3c77
2 changed files with 11 additions and 6 deletions
|
|
@ -3,6 +3,7 @@ package main_test
|
|||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"os"
|
||||
|
|
@ -166,7 +167,7 @@ func TestManifestIntegrationSmoke(t *testing.T) {
|
|||
"qcow2",
|
||||
"--arch=x86_64",
|
||||
"--distro=centos-9",
|
||||
makeTestBlueprint(t, testBlueprint),
|
||||
fmt.Sprintf("--blueprint=%s", makeTestBlueprint(t, testBlueprint)),
|
||||
})
|
||||
defer restore()
|
||||
|
||||
|
|
@ -318,7 +319,7 @@ func TestBuildIntegrationHappy(t *testing.T) {
|
|||
restore = main.MockOsArgs([]string{
|
||||
"build",
|
||||
"qcow2",
|
||||
makeTestBlueprint(t, testBlueprint),
|
||||
fmt.Sprintf("--blueprint=%s", makeTestBlueprint(t, testBlueprint)),
|
||||
"--distro", "centos-9",
|
||||
"--store", tmpdir,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue