Skip to content

Commit a0a01df

Browse files
committed
Also preserve and move module tests
As noted by @glatterf42 at #88 (comment)
1 parent 45c8ce6 commit a0a01df

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

util/2-migrate.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,15 @@ git checkout -b $BRANCH $SRC/$SRC_BRANCH
4545
# - Module data.
4646
# - Module code. The "/model/" path fragment could also be "/project/", or
4747
# removed entirely.
48+
# - Module tests.
4849
#
49-
# NB can add lines to also preserve docs, tests, e.g.:
50-
# --path-rename message_data/tests/model/$MOD/:$D_PACKAGE/tests/model/$MOD/
50+
# Add or remove lines here as necessary; not all modules have all the above
51+
# pieces, and some modules have additional pieces.
5152
git filter-repo \
5253
--refs $BRANCH --force --debug \
5354
--path-rename data/$MOD/:$D_PACKAGE/data/$MOD/ \
54-
--path-rename $S_PACKAGE/model/$MOD/:$D_PACKAGE/model/$MOD/
55+
--path-rename $S_PACKAGE/model/$MOD/:$D_PACKAGE/model/$MOD/ \
56+
--path-rename $S_PACKAGE/tests/model/$MOD/:$D_PACKAGE/tests/model/$MOD/
5557

5658
# --path = keep only a subset of files and directories.
5759
#

0 commit comments

Comments
 (0)