Skip to content

Commit

Permalink
test: remove package version check
Browse files Browse the repository at this point in the history
Package version parsing fails on minor releases (88.1).
  • Loading branch information
achilleas-k committed Sep 20, 2023
1 parent 23a59ea commit 01f37f6
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions internal/client/blueprints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ package client

import (
"encoding/json"
"fmt"
"os/exec"
"sort"
"strconv"
"strings"
"testing"

Expand Down Expand Up @@ -1110,22 +1107,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",
Expand Down

0 comments on commit 01f37f6

Please sign in to comment.