Skip to content

Commit

Permalink
test: Fix draft-mr test preparation
Browse files Browse the repository at this point in the history
It should remove an eventual branch left-over from a previous run,
not a left-over branch from a different test, whoops.
  • Loading branch information
fmuellner authored and prarit committed Dec 23, 2020
1 parent 33de0c3 commit 82d9be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/mr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func Test_mrCmd_Draft(t *testing.T) {
repo := copyTestRepo(t)
var mrID string
t.Run("prepare", func(t *testing.T) {
cmd := exec.Command("sh", "-c", labBinaryPath+` mr list lab-testing | grep -m1 'mr title' | cut -c2- | awk '{print $1}' | xargs `+labBinaryPath+` mr lab-testing -d`)
cmd := exec.Command("sh", "-c", labBinaryPath+` mr list lab-testing | grep -m1 'Test draft' | cut -c2- | awk '{print $1}' | xargs `+labBinaryPath+` mr lab-testing -d`)
cmd.Dir = repo

b, err := cmd.CombinedOutput()
Expand Down

0 comments on commit 82d9be5

Please sign in to comment.