test_e2e.sh: quote $expected_depth
This commit is contained in:
parent
81a4409a04
commit
27a325e9f3
18
test_e2e.sh
18
test_e2e.sh
|
|
@ -1658,7 +1658,7 @@ function e2e::sync_depth_across_updates() {
|
||||||
assert_metric_eq "${METRIC_GOOD_SYNC_COUNT}" 1
|
assert_metric_eq "${METRIC_GOOD_SYNC_COUNT}" 1
|
||||||
assert_metric_eq "${METRIC_FETCH_COUNT}" 1
|
assert_metric_eq "${METRIC_FETCH_COUNT}" 1
|
||||||
depth=$(git -C "$ROOT/link" rev-list HEAD | wc -l)
|
depth=$(git -C "$ROOT/link" rev-list HEAD | wc -l)
|
||||||
if [[ $expected_depth != "$depth" ]]; then
|
if [[ "$expected_depth" != "$depth" ]]; then
|
||||||
fail "initial: expected depth $expected_depth, got $depth"
|
fail "initial: expected depth $expected_depth, got $depth"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -1672,7 +1672,7 @@ function e2e::sync_depth_across_updates() {
|
||||||
assert_metric_eq "${METRIC_GOOD_SYNC_COUNT}" 2
|
assert_metric_eq "${METRIC_GOOD_SYNC_COUNT}" 2
|
||||||
assert_metric_eq "${METRIC_FETCH_COUNT}" 2
|
assert_metric_eq "${METRIC_FETCH_COUNT}" 2
|
||||||
depth=$(git -C "$ROOT/link" rev-list HEAD | wc -l)
|
depth=$(git -C "$ROOT/link" rev-list HEAD | wc -l)
|
||||||
if [[ $expected_depth != "$depth" ]]; then
|
if [[ "$expected_depth" != "$depth" ]]; then
|
||||||
fail "forward: expected depth $expected_depth, got $depth"
|
fail "forward: expected depth $expected_depth, got $depth"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -1685,7 +1685,7 @@ function e2e::sync_depth_across_updates() {
|
||||||
assert_metric_eq "${METRIC_GOOD_SYNC_COUNT}" 3
|
assert_metric_eq "${METRIC_GOOD_SYNC_COUNT}" 3
|
||||||
assert_metric_eq "${METRIC_FETCH_COUNT}" 3
|
assert_metric_eq "${METRIC_FETCH_COUNT}" 3
|
||||||
depth=$(git -C "$ROOT/link" rev-list HEAD | wc -l)
|
depth=$(git -C "$ROOT/link" rev-list HEAD | wc -l)
|
||||||
if [[ $expected_depth != "$depth" ]]; then
|
if [[ "$expected_depth" != "$depth" ]]; then
|
||||||
fail "backward: expected depth $expected_depth, got $depth"
|
fail "backward: expected depth $expected_depth, got $depth"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
@ -2726,11 +2726,11 @@ function e2e::submodule_sync_depth() {
|
||||||
assert_file_eq "$ROOT/link/$SUBMODULE_REPO_NAME/submodule.file" "${FUNCNAME[0]} 1"
|
assert_file_eq "$ROOT/link/$SUBMODULE_REPO_NAME/submodule.file" "${FUNCNAME[0]} 1"
|
||||||
assert_metric_eq "${METRIC_GOOD_SYNC_COUNT}" 1
|
assert_metric_eq "${METRIC_GOOD_SYNC_COUNT}" 1
|
||||||
depth=$(git -C "$ROOT/link" rev-list HEAD | wc -l)
|
depth=$(git -C "$ROOT/link" rev-list HEAD | wc -l)
|
||||||
if [[ $expected_depth != "$depth" ]]; then
|
if [[ "$expected_depth" != "$depth" ]]; then
|
||||||
fail "initial depth mismatch expected=$expected_depth actual=$depth"
|
fail "initial depth mismatch expected=$expected_depth actual=$depth"
|
||||||
fi
|
fi
|
||||||
submodule_depth=$(git -C "$ROOT/link/$SUBMODULE_REPO_NAME" rev-list HEAD | wc -l)
|
submodule_depth=$(git -C "$ROOT/link/$SUBMODULE_REPO_NAME" rev-list HEAD | wc -l)
|
||||||
if [[ $expected_depth != "$submodule_depth" ]]; then
|
if [[ "$expected_depth" != "$submodule_depth" ]]; then
|
||||||
fail "initial submodule depth mismatch expected=$expected_depth actual=$submodule_depth"
|
fail "initial submodule depth mismatch expected=$expected_depth actual=$submodule_depth"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -2745,11 +2745,11 @@ function e2e::submodule_sync_depth() {
|
||||||
assert_file_eq "$ROOT/link/$SUBMODULE_REPO_NAME/submodule.file" "${FUNCNAME[0]} 2"
|
assert_file_eq "$ROOT/link/$SUBMODULE_REPO_NAME/submodule.file" "${FUNCNAME[0]} 2"
|
||||||
assert_metric_eq "${METRIC_GOOD_SYNC_COUNT}" 2
|
assert_metric_eq "${METRIC_GOOD_SYNC_COUNT}" 2
|
||||||
depth=$(git -C "$ROOT/link" rev-list HEAD | wc -l)
|
depth=$(git -C "$ROOT/link" rev-list HEAD | wc -l)
|
||||||
if [[ $expected_depth != "$depth" ]]; then
|
if [[ "$expected_depth" != "$depth" ]]; then
|
||||||
fail "forward depth mismatch expected=$expected_depth actual=$depth"
|
fail "forward depth mismatch expected=$expected_depth actual=$depth"
|
||||||
fi
|
fi
|
||||||
submodule_depth=$(git -C "$ROOT/link/$SUBMODULE_REPO_NAME" rev-list HEAD | wc -l)
|
submodule_depth=$(git -C "$ROOT/link/$SUBMODULE_REPO_NAME" rev-list HEAD | wc -l)
|
||||||
if [[ $expected_depth != "$submodule_depth" ]]; then
|
if [[ "$expected_depth" != "$submodule_depth" ]]; then
|
||||||
fail "forward submodule depth mismatch expected=$expected_depth actual=$submodule_depth"
|
fail "forward submodule depth mismatch expected=$expected_depth actual=$submodule_depth"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -2763,11 +2763,11 @@ function e2e::submodule_sync_depth() {
|
||||||
assert_file_eq "$ROOT/link/$SUBMODULE_REPO_NAME/submodule.file" "${FUNCNAME[0]} 1"
|
assert_file_eq "$ROOT/link/$SUBMODULE_REPO_NAME/submodule.file" "${FUNCNAME[0]} 1"
|
||||||
assert_metric_eq "${METRIC_GOOD_SYNC_COUNT}" 3
|
assert_metric_eq "${METRIC_GOOD_SYNC_COUNT}" 3
|
||||||
depth=$(git -C "$ROOT/link" rev-list HEAD | wc -l)
|
depth=$(git -C "$ROOT/link" rev-list HEAD | wc -l)
|
||||||
if [[ $expected_depth != "$depth" ]]; then
|
if [[ "$expected_depth" != "$depth" ]]; then
|
||||||
fail "initial depth mismatch expected=$expected_depth actual=$depth"
|
fail "initial depth mismatch expected=$expected_depth actual=$depth"
|
||||||
fi
|
fi
|
||||||
submodule_depth=$(git -C "$ROOT/link/$SUBMODULE_REPO_NAME" rev-list HEAD | wc -l)
|
submodule_depth=$(git -C "$ROOT/link/$SUBMODULE_REPO_NAME" rev-list HEAD | wc -l)
|
||||||
if [[ $expected_depth != "$submodule_depth" ]]; then
|
if [[ "$expected_depth" != "$submodule_depth" ]]; then
|
||||||
fail "initial submodule depth mismatch expected=$expected_depth actual=$submodule_depth"
|
fail "initial submodule depth mismatch expected=$expected_depth actual=$submodule_depth"
|
||||||
fi
|
fi
|
||||||
rm -rf $SUBMODULE
|
rm -rf $SUBMODULE
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue