tests: extract obshistory setup in a separate file
We are gonna soon explode the obshistory test file into several, extract the
setup to reuse it as much as possible.
--- a/tests/test-evolve-obshistory.t Tue May 22 12:07:24 2018 +0200
+++ b/tests/test-evolve-obshistory.t Tue May 22 15:35:54 2018 +0200
@@ -4,17 +4,7 @@
Global setup
============
- $ . $TESTDIR/testlib/common.sh
- $ cat >> $HGRCPATH <<EOF
- > [ui]
- > interactive = true
- > [phases]
- > publish=False
- > [extensions]
- > evolve =
- > [experimental]
- > evolution.effect-flags = yes
- > EOF
+ $ . $TESTDIR/testlib/obshistory_setup.sh
Test simple common cases
========================
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/testlib/obshistory_setup.sh Tue May 22 15:35:54 2018 +0200
@@ -0,0 +1,12 @@
+. $TESTDIR/testlib/common.sh
+
+cat >> $HGRCPATH <<EOF
+[ui]
+interactive = true
+[phases]
+publish=False
+[extensions]
+evolve =
+[experimental]
+evolution.effect-flags = yes
+EOF