Unavailable repository fails to trigger task
This commit is contained in:
parent
983b155fa9
commit
b8820dfd8d
|
@ -76,15 +76,6 @@ function clean {
|
|||
[[ "$TIME" = "$NEWTIME" ]]
|
||||
}
|
||||
|
||||
@test "forced run triggers task" {
|
||||
$FORGEBUILD -b $FORGEBUILDDIR time
|
||||
[ -f /tmp/forgebuild-time ]
|
||||
TIME="$(cat /tmp/forgebuild-time)"
|
||||
$FORGEBUILD -f -b $FORGEBUILDDIR time
|
||||
NEWTIME="$(cat /tmp/forgebuild-time)"
|
||||
[[ "$TIME" != "$NEWTIME" ]]
|
||||
}
|
||||
|
||||
@test "update triggers task" {
|
||||
$FORGEBUILD -b $FORGEBUILDDIR time
|
||||
[ -f /tmp/forgebuild-time ]
|
||||
|
@ -112,6 +103,15 @@ function clean {
|
|||
[[ "$(cat /tmp/forgebuild-host)" = "default" ]]
|
||||
}
|
||||
|
||||
@test "forced run triggers task" {
|
||||
$FORGEBUILD -b $FORGEBUILDDIR time
|
||||
[ -f /tmp/forgebuild-time ]
|
||||
TIME="$(cat /tmp/forgebuild-time)"
|
||||
$FORGEBUILD -f -b $FORGEBUILDDIR time
|
||||
NEWTIME="$(cat /tmp/forgebuild-time)"
|
||||
[[ "$TIME" != "$NEWTIME" ]]
|
||||
}
|
||||
|
||||
@test "can checkout to a specific branch/commit" {
|
||||
echo "branch" > $FORGEBUILDDIR/branch.checkout
|
||||
cd $GITREPO
|
||||
|
@ -153,6 +153,12 @@ function clean {
|
|||
[ -f /tmp/forgebuild-time ]
|
||||
}
|
||||
|
||||
@test "repository unavailable fails to trigger task" {
|
||||
rm -Rf $GITREPO
|
||||
! $FORGEBUILD -b $FORGEBUILDDIR time
|
||||
[ ! -f /tmp/forgebuild-time ]
|
||||
}
|
||||
|
||||
# Repository with submodules
|
||||
|
||||
function setup_submodule {
|
||||
|
@ -197,3 +203,4 @@ function setup_submodule {
|
|||
|
||||
[[ "$TIME" = "$NEWTIME" ]]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue