From bc4ace8357a6c7e5149e0713badb827ba27e5c98 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Tue, 20 Dec 2022 22:31:59 +1100 Subject: [PATCH] add commit revert integration test --- pkg/integration/components/assert.go | 17 ++++++++ pkg/integration/tests/commit/revert.go | 37 ++++++++++++++++++ pkg/integration/tests/tests.go | 1 + .../expected/repo/.git_keep/COMMIT_EDITMSG | 1 - .../expected/repo/.git_keep/FETCH_HEAD | 0 .../expected/repo/.git_keep/HEAD | 1 - .../expected/repo/.git_keep/config | 10 ----- .../expected/repo/.git_keep/description | 1 - .../expected/repo/.git_keep/index | Bin 279 -> 0 bytes .../expected/repo/.git_keep/info/exclude | 7 ---- .../expected/repo/.git_keep/logs/HEAD | 5 --- .../repo/.git_keep/logs/refs/heads/master | 5 --- .../17/27eeb6864e52a8967a1a494099359dbdfcc235 | Bin 147 -> 0 bytes .../18/0cf8328022becee9aaa2577a8f84ea2b9f3827 | Bin 21 -> 0 bytes .../1e/3e67b999db1576ad1ee08bf4f02bdf29e49442 | Bin 50 -> 0 bytes .../38/143ad4a0fe2ab6ee53c2ef89a5d9e2bd9535da | Bin 21 -> 0 bytes .../3a/1ee58e5736049ad5b9266715d3642614816c1f | 2 - .../7e/03c9a9538a907c936de5c9a2154707b9ee541c | 4 -- .../9e/88a70dc8d82dd2afbfd50176ef78e18823bc2c | Bin 101 -> 0 bytes .../9e/aae8f342ca71c060b760870a715a6303905935 | Bin 118 -> 0 bytes .../a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 | Bin 21 -> 0 bytes .../ab/15072795e72a2061bc40060494c3ca2138b297 | Bin 196 -> 0 bytes .../b7/81ffd3aa940dde39f73c9149b67e2b128de085 | 2 - .../d0/76cc9cc09acaa2d36fbc7a95fd3e2306494641 | 2 - .../expected/repo/.git_keep/refs/heads/master | 1 - .../commitsRevert/expected/repo/file0 | 1 - .../commitsRevert/expected/repo/file2 | 1 - test/integration/commitsRevert/recording.json | 1 - test/integration/commitsRevert/setup.sh | 22 ----------- test/integration/commitsRevert/test.json | 1 - 30 files changed, 55 insertions(+), 67 deletions(-) create mode 100644 pkg/integration/tests/commit/revert.go delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/COMMIT_EDITMSG delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/FETCH_HEAD delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/HEAD delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/config delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/description delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/index delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/info/exclude delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/logs/HEAD delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/logs/refs/heads/master delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/objects/17/27eeb6864e52a8967a1a494099359dbdfcc235 delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/objects/18/0cf8328022becee9aaa2577a8f84ea2b9f3827 delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/objects/1e/3e67b999db1576ad1ee08bf4f02bdf29e49442 delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/objects/38/143ad4a0fe2ab6ee53c2ef89a5d9e2bd9535da delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/objects/3a/1ee58e5736049ad5b9266715d3642614816c1f delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/objects/7e/03c9a9538a907c936de5c9a2154707b9ee541c delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/objects/9e/88a70dc8d82dd2afbfd50176ef78e18823bc2c delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/objects/9e/aae8f342ca71c060b760870a715a6303905935 delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/objects/ab/15072795e72a2061bc40060494c3ca2138b297 delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/objects/b7/81ffd3aa940dde39f73c9149b67e2b128de085 delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/objects/d0/76cc9cc09acaa2d36fbc7a95fd3e2306494641 delete mode 100644 test/integration/commitsRevert/expected/repo/.git_keep/refs/heads/master delete mode 100644 test/integration/commitsRevert/expected/repo/file0 delete mode 100644 test/integration/commitsRevert/expected/repo/file2 delete mode 100644 test/integration/commitsRevert/recording.json delete mode 100644 test/integration/commitsRevert/setup.sh delete mode 100644 test/integration/commitsRevert/test.json diff --git a/pkg/integration/components/assert.go b/pkg/integration/components/assert.go index 3ce842ebf..65e3e6ec9 100644 --- a/pkg/integration/components/assert.go +++ b/pkg/integration/components/assert.go @@ -2,6 +2,7 @@ package components import ( "fmt" + "os" "regexp" "strings" "time" @@ -259,3 +260,19 @@ func (self *Assert) assertWithRetries(test func() (bool, string)) { func (self *Assert) Fail(message string) { self.gui.Fail(message) } + +// This does _not_ check the files panel, it actually checks the filesystem +func (self *Assert) FileSystemPathPresent(path string) { + self.assertWithRetries(func() (bool, string) { + _, err := os.Stat(path) + return err == nil, fmt.Sprintf("Expected path '%s' to exist, but it does not", path) + }) +} + +// This does _not_ check the files panel, it actually checks the filesystem +func (self *Assert) FileSystemPathNotPresent(path string) { + self.assertWithRetries(func() (bool, string) { + _, err := os.Stat(path) + return os.IsNotExist(err), fmt.Sprintf("Expected path '%s' to not exist, but it does", path) + }) +} diff --git a/pkg/integration/tests/commit/revert.go b/pkg/integration/tests/commit/revert.go new file mode 100644 index 000000000..c42c7af53 --- /dev/null +++ b/pkg/integration/tests/commit/revert.go @@ -0,0 +1,37 @@ +package commit + +import ( + "github.com/jesseduffield/lazygit/pkg/config" + . "github.com/jesseduffield/lazygit/pkg/integration/components" +) + +var Revert = NewIntegrationTest(NewIntegrationTestArgs{ + Description: "Reverts a commit", + ExtraCmdArgs: "", + Skip: false, + SetupConfig: func(config *config.AppConfig) {}, + SetupRepo: func(shell *Shell) { + shell.CreateFile("myfile", "myfile content") + shell.GitAddAll() + shell.Commit("first commit") + }, + Run: func(shell *Shell, input *Input, assert *Assert, keys config.KeybindingConfig) { + assert.CommitCount(1) + + input.SwitchToCommitsWindow() + + input.PressKeys(keys.Commits.RevertCommit) + assert.InConfirm() + assert.MatchCurrentViewTitle(Equals("Revert commit")) + assert.MatchCurrentViewContent(MatchesRegexp("Are you sure you want to revert \\w+?")) + input.Confirm() + + assert.CommitCount(2) + assert.MatchHeadCommitMessage(Contains("Revert \"first commit\"")) + input.PreviousItem() + assert.MatchMainViewContent(Contains("-myfile content")) + assert.FileSystemPathNotPresent("myfile") + + input.Wait(10) + }, +}) diff --git a/pkg/integration/tests/tests.go b/pkg/integration/tests/tests.go index e1a23bb14..bad90f0cc 100644 --- a/pkg/integration/tests/tests.go +++ b/pkg/integration/tests/tests.go @@ -37,6 +37,7 @@ var tests = []*components.IntegrationTest{ cherry_pick.CherryPickConflicts, commit.Commit, commit.CommitMultiline, + commit.Revert, commit.NewBranch, commit.Staged, commit.Unstaged, diff --git a/test/integration/commitsRevert/expected/repo/.git_keep/COMMIT_EDITMSG b/test/integration/commitsRevert/expected/repo/.git_keep/COMMIT_EDITMSG deleted file mode 100644 index a04a59a53..000000000 --- a/test/integration/commitsRevert/expected/repo/.git_keep/COMMIT_EDITMSG +++ /dev/null @@ -1 +0,0 @@ -revert commit diff --git a/test/integration/commitsRevert/expected/repo/.git_keep/FETCH_HEAD b/test/integration/commitsRevert/expected/repo/.git_keep/FETCH_HEAD deleted file mode 100644 index e69de29bb..000000000 diff --git a/test/integration/commitsRevert/expected/repo/.git_keep/HEAD b/test/integration/commitsRevert/expected/repo/.git_keep/HEAD deleted file mode 100644 index cb089cd89..000000000 --- a/test/integration/commitsRevert/expected/repo/.git_keep/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/heads/master diff --git a/test/integration/commitsRevert/expected/repo/.git_keep/config b/test/integration/commitsRevert/expected/repo/.git_keep/config deleted file mode 100644 index 8ae104545..000000000 --- a/test/integration/commitsRevert/expected/repo/.git_keep/config +++ /dev/null @@ -1,10 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = true - bare = false - logallrefupdates = true - ignorecase = true - precomposeunicode = true -[user] - email = CI@example.com - name = CI diff --git a/test/integration/commitsRevert/expected/repo/.git_keep/description b/test/integration/commitsRevert/expected/repo/.git_keep/description deleted file mode 100644 index 498b267a8..000000000 --- a/test/integration/commitsRevert/expected/repo/.git_keep/description +++ /dev/null @@ -1 +0,0 @@ -Unnamed repository; edit this file 'description' to name the repository. diff --git a/test/integration/commitsRevert/expected/repo/.git_keep/index b/test/integration/commitsRevert/expected/repo/.git_keep/index deleted file mode 100644 index fabd517d85e3c8692aa194062825870606c948d7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 279 zcmZ?q402{*U|<5_#1F+sb(T&n1ku{&3Wkgf46ICQ?2QZzjY}997{3D5hyXF0g^1Oa z1^=|Ry$e3{zH{l#M|-E5-eO=)%gjkN07^43fb{F}1~`MwTesF1YEBcnITAcSj2e{o zoqM@zQFv8<%PZ~q7U~dljKJoE1i88b8IlY}3I<$Oa!>oh%~)n#-Kmx?dO1Z+q%lW6 z$Tbw?csr2Qh75)V24*HEFv@^o>7K`bRa0+#i3pA2$#=RC;MLN76`R 1643148217 +1100 commit (initial): file0 -9eaae8f342ca71c060b760870a715a6303905935 1727eeb6864e52a8967a1a494099359dbdfcc235 CI 1643148217 +1100 commit: file1 -1727eeb6864e52a8967a1a494099359dbdfcc235 b781ffd3aa940dde39f73c9149b67e2b128de085 CI 1643148217 +1100 commit: file2 -b781ffd3aa940dde39f73c9149b67e2b128de085 ab15072795e72a2061bc40060494c3ca2138b297 CI 1643148219 +1100 revert: Revert "file1" -ab15072795e72a2061bc40060494c3ca2138b297 7e03c9a9538a907c936de5c9a2154707b9ee541c CI 1643148227 +1100 commit (amend): revert commit diff --git a/test/integration/commitsRevert/expected/repo/.git_keep/logs/refs/heads/master b/test/integration/commitsRevert/expected/repo/.git_keep/logs/refs/heads/master deleted file mode 100644 index d82a2c6a4..000000000 --- a/test/integration/commitsRevert/expected/repo/.git_keep/logs/refs/heads/master +++ /dev/null @@ -1,5 +0,0 @@ -0000000000000000000000000000000000000000 9eaae8f342ca71c060b760870a715a6303905935 CI 1643148217 +1100 commit (initial): file0 -9eaae8f342ca71c060b760870a715a6303905935 1727eeb6864e52a8967a1a494099359dbdfcc235 CI 1643148217 +1100 commit: file1 -1727eeb6864e52a8967a1a494099359dbdfcc235 b781ffd3aa940dde39f73c9149b67e2b128de085 CI 1643148217 +1100 commit: file2 -b781ffd3aa940dde39f73c9149b67e2b128de085 ab15072795e72a2061bc40060494c3ca2138b297 CI 1643148219 +1100 revert: Revert "file1" -ab15072795e72a2061bc40060494c3ca2138b297 7e03c9a9538a907c936de5c9a2154707b9ee541c CI 1643148227 +1100 commit (amend): revert commit diff --git a/test/integration/commitsRevert/expected/repo/.git_keep/objects/17/27eeb6864e52a8967a1a494099359dbdfcc235 b/test/integration/commitsRevert/expected/repo/.git_keep/objects/17/27eeb6864e52a8967a1a494099359dbdfcc235 deleted file mode 100644 index 59a43062417fc529602610bcd28cbe4aee322cab..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 147 zcmV;E0Brww0ga9^3d1lA06Y5?-U~&tY&nKf3Yqc@MUiPBX+m(J&u^a4@s1l#w{@MH z#}Y2>F!K{+RxPSfL`A|xTu04PQk}>G0ml+KqTA)Lck{(Wtg94*N=5~SF*9@-PD;WA zR3H^fPCo6m9ljs@y&s~ZE#08nZNMgRZ+ diff --git a/test/integration/commitsRevert/expected/repo/.git_keep/objects/1e/3e67b999db1576ad1ee08bf4f02bdf29e49442 b/test/integration/commitsRevert/expected/repo/.git_keep/objects/1e/3e67b999db1576ad1ee08bf4f02bdf29e49442 deleted file mode 100644 index 79fcadf67fdecb0f0cffca7ff27b2ae5c031e4d7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 50 zcmV-20L}k+0V^p=O;s>9W-v4`Ff%bxNXyJgHDIt1vAVM0pVqc_!H3>=F1`6^?^M%U I033l4YT~68jQ{`u diff --git a/test/integration/commitsRevert/expected/repo/.git_keep/objects/38/143ad4a0fe2ab6ee53c2ef89a5d9e2bd9535da b/test/integration/commitsRevert/expected/repo/.git_keep/objects/38/143ad4a0fe2ab6ee53c2ef89a5d9e2bd9535da deleted file mode 100644 index 06c9cb73d7a8ed6841ce407bd6bb15235c8fa15c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 21 ccmb|y2)08mZ`J^%m! diff --git a/test/integration/commitsRevert/expected/repo/.git_keep/objects/3a/1ee58e5736049ad5b9266715d3642614816c1f b/test/integration/commitsRevert/expected/repo/.git_keep/objects/3a/1ee58e5736049ad5b9266715d3642614816c1f deleted file mode 100644 index 2d68564f5..000000000 --- a/test/integration/commitsRevert/expected/repo/.git_keep/objects/3a/1ee58e5736049ad5b9266715d3642614816c1f +++ /dev/null @@ -1,2 +0,0 @@ -x+)JMU03c040031QHI5`ֶww.hT[H -$x~5(;rբW-9 \ No newline at end of file diff --git a/test/integration/commitsRevert/expected/repo/.git_keep/objects/7e/03c9a9538a907c936de5c9a2154707b9ee541c b/test/integration/commitsRevert/expected/repo/.git_keep/objects/7e/03c9a9538a907c936de5c9a2154707b9ee541c deleted file mode 100644 index fea4aa6be..000000000 --- a/test/integration/commitsRevert/expected/repo/.git_keep/objects/7e/03c9a9538a907c936de5c9a2154707b9ee541c +++ /dev/null @@ -1,4 +0,0 @@ -x}K -1]$O'AY1`!DmQxym6@IytDf:M҄Xl -ȡ-"4)c[Z1Y -PMHX%TV縮y;Χ3 * pDRt?5O_|3< \ No newline at end of file diff --git a/test/integration/commitsRevert/expected/repo/.git_keep/objects/9e/88a70dc8d82dd2afbfd50176ef78e18823bc2c b/test/integration/commitsRevert/expected/repo/.git_keep/objects/9e/88a70dc8d82dd2afbfd50176ef78e18823bc2c deleted file mode 100644 index 0e95eb06dda15fe1901a7942e7954b700b36bfa9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 101 zcmV-r0Gj`J0V^p=O;xb8WH2-^Ff%bxNXyJgHDIt1vAVM0pVqc_!H3>=F1`6^?^M%U zND2%YmhO4{S2gv2WLwJR>kD diff --git a/test/integration/commitsRevert/expected/repo/.git_keep/objects/9e/aae8f342ca71c060b760870a715a6303905935 b/test/integration/commitsRevert/expected/repo/.git_keep/objects/9e/aae8f342ca71c060b760870a715a6303905935 deleted file mode 100644 index dfcaf39be7ad3008ab5b768e9c6dafa58fbf03d6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 118 zcmV-+0Ez#20gcT;3c@fDMq$@E#q0%{NynrC5uvLdBWeC%p&_M2@c8x!ZXX}KrPaE2 z64gsT01^yvK7|l+lDl^?3&3M4TG*ysY=8z;YvQNB+draXN^O YRy`~^A08nuUMF0Q* diff --git a/test/integration/commitsRevert/expected/repo/.git_keep/objects/ab/15072795e72a2061bc40060494c3ca2138b297 b/test/integration/commitsRevert/expected/repo/.git_keep/objects/ab/15072795e72a2061bc40060494c3ca2138b297 deleted file mode 100644 index 28a9eaf41b29f9aa55aca000b0a6cd7fc406e9bb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 196 zcmV;#06YJ90gaAJYC|y$0K4`nM7D)s`6F9UN+GLkOD`bXGI@}f7aX_r_ZA_d9s0}#lns#VQij)BMcd-VmEggdYe#E#@?G3;b2=+&pr9d z7`RYUSJ36AHb*0$^Rf*%o#Ewle$#JR?^iw6ZG8o#;P5_K{m@y;kSr(fj}-p-ugO6=84y diff --git a/test/integration/commitsRevert/expected/repo/.git_keep/objects/b7/81ffd3aa940dde39f73c9149b67e2b128de085 b/test/integration/commitsRevert/expected/repo/.git_keep/objects/b7/81ffd3aa940dde39f73c9149b67e2b128de085 deleted file mode 100644 index c32d4b681..000000000 --- a/test/integration/commitsRevert/expected/repo/.git_keep/objects/b7/81ffd3aa940dde39f73c9149b67e2b128de085 +++ /dev/null @@ -1,2 +0,0 @@ -xK -0@] & "tcL [Jo /I8Z֊r@ " F"9Pp).9JAk;44?}_VGQ_Q'=\9 \ No newline at end of file diff --git a/test/integration/commitsRevert/expected/repo/.git_keep/objects/d0/76cc9cc09acaa2d36fbc7a95fd3e2306494641 b/test/integration/commitsRevert/expected/repo/.git_keep/objects/d0/76cc9cc09acaa2d36fbc7a95fd3e2306494641 deleted file mode 100644 index 2e9066287..000000000 --- a/test/integration/commitsRevert/expected/repo/.git_keep/objects/d0/76cc9cc09acaa2d36fbc7a95fd3e2306494641 +++ /dev/null @@ -1,2 +0,0 @@ -x+)JMU03c040031QHI5`ֶww.hT[H - yW5Ɨ(| ^-W(x9 \ No newline at end of file diff --git a/test/integration/commitsRevert/expected/repo/.git_keep/refs/heads/master b/test/integration/commitsRevert/expected/repo/.git_keep/refs/heads/master deleted file mode 100644 index 7edf473fd..000000000 --- a/test/integration/commitsRevert/expected/repo/.git_keep/refs/heads/master +++ /dev/null @@ -1 +0,0 @@ -7e03c9a9538a907c936de5c9a2154707b9ee541c diff --git a/test/integration/commitsRevert/expected/repo/file0 b/test/integration/commitsRevert/expected/repo/file0 deleted file mode 100644 index 38143ad4a..000000000 --- a/test/integration/commitsRevert/expected/repo/file0 +++ /dev/null @@ -1 +0,0 @@ -test0 diff --git a/test/integration/commitsRevert/expected/repo/file2 b/test/integration/commitsRevert/expected/repo/file2 deleted file mode 100644 index 180cf8328..000000000 --- a/test/integration/commitsRevert/expected/repo/file2 +++ /dev/null @@ -1 +0,0 @@ -test2 diff --git a/test/integration/commitsRevert/recording.json b/test/integration/commitsRevert/recording.json deleted file mode 100644 index 80125e840..000000000 --- a/test/integration/commitsRevert/recording.json +++ /dev/null @@ -1 +0,0 @@ -{"KeyEvents":[{"Timestamp":614,"Mod":0,"Key":259,"Ch":0},{"Timestamp":749,"Mod":0,"Key":259,"Ch":0},{"Timestamp":980,"Mod":0,"Key":258,"Ch":0},{"Timestamp":1219,"Mod":0,"Key":256,"Ch":116},{"Timestamp":1854,"Mod":0,"Key":13,"Ch":13},{"Timestamp":2469,"Mod":0,"Key":257,"Ch":0},{"Timestamp":2725,"Mod":0,"Key":257,"Ch":0},{"Timestamp":3892,"Mod":0,"Key":256,"Ch":114},{"Timestamp":5421,"Mod":2,"Key":21,"Ch":21},{"Timestamp":5854,"Mod":2,"Key":21,"Ch":21},{"Timestamp":6197,"Mod":2,"Key":21,"Ch":21},{"Timestamp":6469,"Mod":2,"Key":21,"Ch":21},{"Timestamp":6781,"Mod":2,"Key":21,"Ch":21},{"Timestamp":7078,"Mod":2,"Key":21,"Ch":21},{"Timestamp":7907,"Mod":0,"Key":256,"Ch":114},{"Timestamp":7989,"Mod":0,"Key":256,"Ch":101},{"Timestamp":8148,"Mod":0,"Key":256,"Ch":118},{"Timestamp":8285,"Mod":0,"Key":256,"Ch":101},{"Timestamp":8356,"Mod":0,"Key":256,"Ch":114},{"Timestamp":8493,"Mod":0,"Key":256,"Ch":116},{"Timestamp":8604,"Mod":0,"Key":256,"Ch":32},{"Timestamp":8700,"Mod":0,"Key":256,"Ch":102},{"Timestamp":9125,"Mod":0,"Key":127,"Ch":127},{"Timestamp":9189,"Mod":0,"Key":256,"Ch":99},{"Timestamp":9317,"Mod":0,"Key":256,"Ch":111},{"Timestamp":9509,"Mod":0,"Key":256,"Ch":109},{"Timestamp":9637,"Mod":0,"Key":256,"Ch":109},{"Timestamp":9685,"Mod":0,"Key":256,"Ch":105},{"Timestamp":9781,"Mod":0,"Key":256,"Ch":116},{"Timestamp":9918,"Mod":0,"Key":13,"Ch":13},{"Timestamp":11110,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":272,"Height":74}]} \ No newline at end of file diff --git a/test/integration/commitsRevert/setup.sh b/test/integration/commitsRevert/setup.sh deleted file mode 100644 index 4e35cf543..000000000 --- a/test/integration/commitsRevert/setup.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -set -e - -cd $1 - -git init - -git config user.email "CI@example.com" -git config user.name "CI" - -echo test0 > file0 -git add . -git commit -am file0 - -echo test1 > file1 -git add . -git commit -am file1 - -echo test2 > file2 -git add . -git commit -am file2 diff --git a/test/integration/commitsRevert/test.json b/test/integration/commitsRevert/test.json deleted file mode 100644 index d760dcc6c..000000000 --- a/test/integration/commitsRevert/test.json +++ /dev/null @@ -1 +0,0 @@ -{ "description": "Reverting a commit. Note here that our snapshot test fails if the commit SHA is included in the message hence the renaming of the revert commit after creating it", "speed": 20 }