comparison tests/test-lfs-test-server.t @ 46116:17a695357270

errors: use detailed exit code 50 for StorageError This is done as part of https://www.mercurial-scm.org/wiki/ErrorCategoriesPlan. Differential Revision: https://phab.mercurial-scm.org/D9601
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 09 Dec 2020 19:40:30 -0800
parents 95c4cca641f6
children 47b11629a0f2
comparison
equal deleted inserted replaced
46115:be3d8178251e 46116:17a695357270
458 Content-Length: 7 (git-server !) 458 Content-Length: 7 (git-server !)
459 Content-Type: text/plain; charset=utf-8 (git-server !) 459 Content-Type: text/plain; charset=utf-8 (git-server !)
460 Date: $HTTP_DATE$ (git-server !) 460 Date: $HTTP_DATE$ (git-server !)
461 abort: corrupt remote lfs object: d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 (git-server !) 461 abort: corrupt remote lfs object: d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 (git-server !)
462 abort: LFS server error for "c": Validation error (hg-server !) 462 abort: LFS server error for "c": Validation error (hg-server !)
463 [255] 463 [50]
464 464
465 The corrupted blob is not added to the usercache or local store 465 The corrupted blob is not added to the usercache or local store
466 466
467 $ test -f ../repo1/.hg/store/lfs/objects/d1/1e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 467 $ test -f ../repo1/.hg/store/lfs/objects/d1/1e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998
468 [1] 468 [1]
825 } 825 }
826 ] 826 ]
827 "transfer": "basic" (hg-server !) 827 "transfer": "basic" (hg-server !)
828 } 828 }
829 abort: LFS server error for "b": The object does not exist 829 abort: LFS server error for "b": The object does not exist
830 [255] 830 [50]
831 831
832 Check error message when object does not exist: 832 Check error message when object does not exist:
833 833
834 $ cd $TESTTMP 834 $ cd $TESTTMP
835 $ hg init test && cd test 835 $ hg init test && cd test
936 } 936 }
937 ] 937 ]
938 "transfer": "basic" (hg-server !) 938 "transfer": "basic" (hg-server !)
939 } 939 }
940 abort: LFS server error for "a": The object does not exist 940 abort: LFS server error for "a": The object does not exist
941 [255] 941 [50]
942 942
943 $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS 943 $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS