Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
edcdavid committed Aug 21, 2024
1 parent 929b6f6 commit 2b15d1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 3 additions & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ make build
kind delete cluster --name test-cluster || true
kind create cluster --name test-cluster --config kind-config.yaml

./simplegraphsolver | sed 's/veth[a-zA-Z0-9]\+/veth/g' | sed 's/time="[^"]*" //' >test/actual.txt
export KUBECONFIG=~/.kube/config

./simplegraphsolver 2>&1 | sed 's/veth[a-zA-Z0-9]\+/veth/g' | sed 's/time="[^"]*" //' >test/actual.txt

diff test/actual.txt test/expected.txt
5 changes: 0 additions & 5 deletions simplegraphsolver.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
package main

import (
"os"

"github.com/openshift/ptp-operator/test/pkg/client"
lib "github.com/redhat-cne/graphsolver-lib"
l2lib "github.com/redhat-cne/l2discovery-lib"
"github.com/sirupsen/logrus"
)

// Runs Solver to find optimal configurations
func main() {
// use stdout for logs
logrus.SetOutput(os.Stdout)
const (
// problem/scenario name
findOCProblemName = "interfaces connected via a LAN"
Expand Down

0 comments on commit 2b15d1f

Please sign in to comment.