GNU bug report logs -
#66793
[PATCH 0/3] Make time-machine commit check cheaper; make test effective
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Sat, 28 Oct 2023 14:04:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi,
Maxim Cournoyer <maxim.cournoyer <at> gmail.com> skribis:
>> +if [ -d "$abs_top_srcdir/.git" ] \
>> + || guile -c '(getaddrinfo "www.gnu.org" "80" AI_NUMERICSERV)' 2> /dev/null
>> +then
>> + guix time-machine --version
>> +else
>> + echo "This test requires networking or a local Git checkout; skipping." >&2
>> + exit 77
>> +fi
>>
>> -# Visiting a commit older than v1.0.0 fails.
>> -! guix time-machine --commit=v0.15.0
>> +if [ -d "$abs_top_srcdir/.git" ]
>> +then
>> + EXTRA_OPTIONS="--url=$abs_top_srcdir"
>
> Should the --url valE here be prefixed with "file://", just to make it
> extra clear we are cloning from a local file?
To my surprise, the test (which does little more than cloning the repo)
runs in 5s without file:// and in 30mn otherwise! So I left the file://
prefix out and added a comment.
Ludo’.
This bug report was last modified 1 year and 290 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.