Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backend/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

type Adj struct {
Branch string
Test bool
}

type Network struct {
Expand All @@ -16,6 +17,6 @@ type Network struct {
type Config struct {
Vehicle vehicle.Config
Server server.Config
Network Network
Adj Adj
Network Network
}
1 change: 1 addition & 0 deletions backend/cmd/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ manual = false

[adj]
branch = "sw-bcu" # Leave blank when using ADJ as a submodule (like this: "")
test = true
12 changes: 7 additions & 5 deletions backend/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,13 @@ func main() {
trace.Fatal().Err(err).Msg("setting up ADJ")
}

test := exec.Command("python3", "testadj.py")
out, err := test.CombinedOutput()
if err != nil || len(out) != 0 {
fmt.Printf("\nPython test failed:\nError: %v\nOutput: %s\n", err, string(out))
os.Exit(1)
if config.Adj.Test {
test := exec.Command("python3", "testadj.py")
out, err := test.CombinedOutput()
if err != nil || len(out) != 0 {
fmt.Printf("\nPython test failed:\nError: %v\nOutput: %s\n", err, string(out))
os.Exit(1)
}
}

podData, err := pod_data.NewPodData(adj.Boards, adj.Info.Units)
Expand Down
Loading