TEST: make sure copy of remote repo who received update has been updated locally

Just in case some implementation triggers task when there is an update but forgets to update the corresponding repo
This commit is contained in:
southerntofu 2022-01-06 20:34:54 +01:00
parent c0e3bc6497
commit 6c0fabf1b5
2 changed files with 6 additions and 0 deletions

View File

@ -104,6 +104,9 @@ function clean {
NEWTIME="$(cat $TMPDIR/forgebuild-time)"
[[ "$TIME" != "$NEWTIME" ]]
# Check that the forgebuild repo has been updated
[ -f "$FORGEBUILDDIR"/.time/NEWFILE ]
}
@test "update by source URL works" {

View File

@ -87,6 +87,9 @@ function clean {
NEWTIME="$(cat $TMPDIR/forgebuild-time)"
[[ "$TIME" != "$NEWTIME" ]]
# Check that update has been propagated to the forgebuild copy of the repo
[ -f "$FORGEBUILDDIR"/.time/NEWFILE ]
}
@test "hg: can checkout to a specific branch/commit" {