Skip to content

Commit

Permalink
Fix spqrdump binary name. (#700)
Browse files Browse the repository at this point in the history
* Fix spqrdump binary name.

* More

* even more
  • Loading branch information
reshke authored Jul 8, 2024
1 parent 24603ac commit 7dd9180
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ spqr-worldmock
spqr-balancer
spqr-mover
spqr-workloadreplay
spqrdump
spqr-dump
y.output
*.swp
*.swo
memqdb.json
test/feature/generatedFeatures
test/feature/logs
yacc/console/gram.y.save
.DS_Store
.DS_Store
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ build_workloadreplay:
go build -pgo=auto -o spqr-workloadreplay ./cmd/workloadreplay

build_spqrdump:
go build -pgo=auto -o spqrdump ./cmd/spqrdump
go build -pgo=auto -o spqr-dump ./cmd/spqrdump

build: build_balancer build_coordinator build_coorctl build_router build_mover build_worldmock build_workloadreplay build_spqrdump

Expand Down
4 changes: 2 additions & 2 deletions cmd/spqrdump/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func Dial(addr string) (*grpc.ClientConn, error) {
}

var rootCmd = &cobra.Command{
Use: "spqrdump -e localhost:7003",
Use: "spqr-dump -e localhost:7003",
CompletionOptions: cobra.CompletionOptions{
DisableDefaultCmd: true,
},
Expand Down Expand Up @@ -260,7 +260,7 @@ var dump = &cobra.Command{
}
spqrlog.Zero.Debug().
Str("endpoint", endpoint).
Msg("dialing spqrdump on")
Msg("dialing spqr-dump on")

switch proto {
case "grpc":
Expand Down
8 changes: 4 additions & 4 deletions test/feature/features/spqrdump.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Feature: spqrdump test
Feature: spqr-dump test
Background:
#
# Make host "coordinator" take control
Expand All @@ -25,7 +25,7 @@ Feature: spqrdump test

When I run command on host "router"
"""
/spqr/spqrdump dump -e regress_router:7000
/spqr/spqr-dump dump -e regress_router:7000
"""
Then command return code should be "0"
And command output should match regexp
Expand All @@ -48,7 +48,7 @@ Feature: spqrdump test

When I run command on host "router"
"""
/spqr/spqrdump dump -e regress_router:7000
/spqr/spqr-dump dump -e regress_router:7000
"""
Then command return code should be "0"
And command output should match regexp
Expand All @@ -71,7 +71,7 @@ Feature: spqrdump test

When I run command on host "router"
"""
/spqr/spqrdump dump -e regress_router:7000
/spqr/spqr-dump dump -e regress_router:7000
"""
Then command return code should be "0"
And command output should match regexp
Expand Down

0 comments on commit 7dd9180

Please sign in to comment.