commit 5dd8d22b08edd56b5b81f36643ab026dd6dc5047 from: Stefan Sperling date: Mon Jan 09 21:11:34 2023 UTC tweak a gotd regress test to cover incremental 'got fetch' Previously the gotd tests were only running fresh clones. commit - 3a975a9fcbb052d6cbf4d9bc062683250a23f466 commit + 5dd8d22b08edd56b5b81f36643ab026dd6dc5047 blob - 9ae1427dc0f407b85f6caeec7b424406e17b7cac blob + 2a84d048566d5046d46563c82ea71b7b67015c5c --- regress/gotd/repo_write.sh +++ regress/gotd/repo_write.sh @@ -30,6 +30,15 @@ test_send_basic() { return 1 fi + # create a second clone to test an incremental fetch with later + got clone -q -m ${GOTD_TEST_REPO_URL} $testroot/repo-clone2 + ret=$? + if [ $ret -ne 0 ]; then + echo "got clone failed unexpectedly" >&2 + test_done "$testroot" "1" + return 1 + fi + got checkout -q $testroot/repo-clone $testroot/wt >/dev/null ret=$? if [ $ret -ne 0 ]; then @@ -53,10 +62,10 @@ test_send_basic() { fi # Verify that the send operation worked fine. - got clone -q ${GOTD_TEST_REPO_URL} $testroot/repo-clone2 + got fetch -q -r $testroot/repo-clone2 ret=$? if [ $ret -ne 0 ]; then - echo "got clone failed unexpectedly" >&2 + echo "got fetch failed unexpectedly" >&2 test_done "$testroot" "1" return 1 fi