Message ID | 004b01d4ca23$faebcad0$f0c36070$@nexbridge.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [Suggestion] Add Skip for t9020 | expand |
Hi, Randall S. Becker wrote: > On February 21, 2019 15:00, I wrote: >> t9020 subtests 1,2,5,6 failed - Not new. unsurprising as there is no SVN or >> perl with SVN module on platform. It might be useful to have a detection to >> skip of Perl SVN is not present. > > While this is a bit of a hack, it might be useful for skipping t9020 in > environments where the svn.remote package is not installed. I can make this > into a patch if this style is reasonable - guessing probably not and that > the REMOTE_SVN test should go elsewhere if it is called that. Jeff King sent an RFC patch which would remove this test and the rest of the vcs-svn experiment in August[1]. Jonathan Nieder replied as one user who would rather see it moved to contrib/, so it was held off. Whether that has any impact on adding a way to skip all the tests here, I don't know. Maybe it's a gentle nudge in favor of moving them to contrib? [1] https://public-inbox.org/git/20180817190310.GA5360@sigill.intra.peff.net/
Hi, Randall S. Becker wrote: > While this is a bit of a hack, it might be useful for skipping t9020 in > environments where the svn.remote package is not installed. I can make this > into a patch if this style is reasonable - guessing probably not and that > the REMOTE_SVN test should go elsewhere if it is called that. > > diff --git a/t/t9020-remote-svn.sh b/t/t9020-remote-svn.sh > index 6fca08e5e3..31edf99371 100755 > --- a/t/t9020-remote-svn.sh > +++ b/t/t9020-remote-svn.sh > @@ -12,6 +12,12 @@ then > test_done > fi > > +python -c "import svn.remote" 2>/dev/null >/dev/null > +if [ $? -eq 0 ]; then > + test_set_prereq REMOTE_SVN > +fi > +if ! test_have_prereq REMOTE_SVN > +then > + skip_all='skipping remote-svn tests, python svn.remote not > available' > + test_done > +fi Interesting. Where do we use the svn.remote package? I did a quick grep and didn't find any instances. Do you have output from running "./t9020-remote-svn.sh -v -i"? Thanks, Jonathan
On February 21, 2019 19:47, Jonathan Nieder wrote: > Randall S. Becker wrote: > > > While this is a bit of a hack, it might be useful for skipping t9020 > > in environments where the svn.remote package is not installed. I can > > make this into a patch if this style is reasonable - guessing probably > > not and that the REMOTE_SVN test should go elsewhere if it is called that. > > > > diff --git a/t/t9020-remote-svn.sh b/t/t9020-remote-svn.sh index > > 6fca08e5e3..31edf99371 100755 > > --- a/t/t9020-remote-svn.sh > > +++ b/t/t9020-remote-svn.sh > > @@ -12,6 +12,12 @@ then > > test_done > > fi > > > > +python -c "import svn.remote" 2>/dev/null >/dev/null if [ $? -eq 0 ]; > > +then > > + test_set_prereq REMOTE_SVN > > +fi > > +if ! test_have_prereq REMOTE_SVN > > +then > > + skip_all='skipping remote-svn tests, python svn.remote not > > available' > > + test_done > > +fi > > Interesting. Where do we use the svn.remote package? I did a quick grep > and didn't find any instances. Well, this was the remote svn test, so I figured I would be specific. We don't have the svn package either so could restrict to that. > Do you have output from running "./t9020-remote-svn.sh -v -i"? Initialized empty Git repository in /home/git/git/t/trash directory.t9020-remote-svn/.git/ expecting success: init_git && git fetch svnsim && test_cmp .git/refs/svn/svnsim/master .git/refs/remotes/svnsim/master && cp .git/refs/remotes/svnsim/master master.good Initialized empty Git repository in /home/git/git/t/trash directory.t9020-remote-svn/.git/ fatal: error reading from fast-import: Resource temporarily unavailable progress Imported commit 1. fatal: error while running fast-import not ok 1 - simple fetch # # init_git && # git fetch svnsim && # test_cmp .git/refs/svn/svnsim/master .git/refs/remotes/svnsim/master && # cp .git/refs/remotes/svnsim/master master.good #
On Thu, Feb 21, 2019 at 03:58:37PM -0500, Todd Zullinger wrote: > > While this is a bit of a hack, it might be useful for skipping t9020 in > > environments where the svn.remote package is not installed. I can make this > > into a patch if this style is reasonable - guessing probably not and that > > the REMOTE_SVN test should go elsewhere if it is called that. > > Jeff King sent an RFC patch which would remove this test and > the rest of the vcs-svn experiment in August[1]. Jonathan > Nieder replied as one user who would rather see it moved to > contrib/, so it was held off. > > Whether that has any impact on adding a way to skip all the > tests here, I don't know. Maybe it's a gentle nudge in > favor of moving them to contrib? I still hoped we could ditch them completely. :) As part of my -Wunused-parameter patches, I found that was an easy way to get rid of some warnings. But I'd be OK if they were in contrib/, too. -Peff
diff --git a/t/t9020-remote-svn.sh b/t/t9020-remote-svn.sh index 6fca08e5e3..31edf99371 100755 --- a/t/t9020-remote-svn.sh +++ b/t/t9020-remote-svn.sh @@ -12,6 +12,12 @@ then test_done fi +python -c "import svn.remote" 2>/dev/null >/dev/null +if [ $? -eq 0 ]; then + test_set_prereq REMOTE_SVN +fi +if ! test_have_prereq REMOTE_SVN +then + skip_all='skipping remote-svn tests, python svn.remote not available' + test_done +fi + # Override svnrdump with our simulator