client/blueprints_test.go: delete condition for composer version < 83
The version check is failing on the "dot" version, while trying to convert "118.1" to an integer. Delete the condition for skipping the test, because it will never be running on anything older than v83 anyway. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
5ccac6b007
commit
169f9a4308
1 changed files with 0 additions and 19 deletions
|
|
@ -11,10 +11,7 @@
|
|||
package client
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os/exec"
|
||||
"sort"
|
||||
"strconv"
|
||||
"testing"
|
||||
|
||||
"github.com/osbuild/osbuild-composer/internal/common"
|
||||
|
|
@ -1063,22 +1060,6 @@ func TestBlueprintFreezeGlobsV0(t *testing.T) {
|
|||
t.Skip()
|
||||
}
|
||||
|
||||
// works with osbuild-composer v83 and later
|
||||
rpm_q := exec.Command("rpm", "-q", "--qf", "%{version}", "osbuild-composer")
|
||||
out, err := rpm_q.CombinedOutput()
|
||||
if err != nil {
|
||||
assert.Fail(t, fmt.Sprintf("Error during rpm -q: %s", err))
|
||||
}
|
||||
|
||||
rpm_version, err := strconv.Atoi(string(out))
|
||||
if err != nil {
|
||||
assert.Fail(t, "Error during str-int conversion", err)
|
||||
}
|
||||
|
||||
if rpm_version < 83 {
|
||||
t.Skip()
|
||||
}
|
||||
|
||||
bp := `{
|
||||
"name": "test-freeze-blueprint-glob-v0",
|
||||
"description": "TestBlueprintFreezeGlobsV0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue