Skip to content

Commit

Permalink
ci_test: Only use labBinaryPath for lab commands
Browse files Browse the repository at this point in the history
lab can forward commands to git, but let's not rely on that behavior
in testing.
  • Loading branch information
fmuellner authored and prarit committed Dec 11, 2020
1 parent 1b34b39 commit 06b5f6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/ci_status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ import (
func Test_ciStatus(t *testing.T) {
t.Parallel()
repo := copyTestRepo(t)
cmd := exec.Command(labBinaryPath, "fetch", "origin")
cmd := exec.Command("git", "fetch", "origin")
cmd.Dir = repo
if b, err := cmd.CombinedOutput(); err != nil {
t.Log(string(b))
t.Fatal(err)
}

cmd = exec.Command(labBinaryPath, "checkout", "-b", "ci_test_pipeline")
cmd = exec.Command("git", "checkout", "-b", "ci_test_pipeline")
cmd.Dir = repo
if b, err := cmd.CombinedOutput(); err != nil {
t.Log(string(b))
t.Fatal(err)
}

cmd = exec.Command(labBinaryPath, "branch", "-m", "local/ci_test_pipeline")
cmd = exec.Command("git", "branch", "-m", "local/ci_test_pipeline")
cmd.Dir = repo
if b, err := cmd.CombinedOutput(); err != nil {
t.Log(string(b))
Expand Down

0 comments on commit 06b5f6a

Please sign in to comment.