GNU bug report logs -
#22004
guix-environment-container.sh test fails when building guix on tmpfs
Previous Next
Reported by: Ting-Wei Lan <lantw44 <at> gmail.com>
Date: Tue, 24 Nov 2015 16:30:04 UTC
Severity: normal
Done: ludo <at> gnu.org (Ludovic Courtès)
Bug is archived. No further changes may be made.
Full log
Message #22 received at 22004-done <at> debbugs.gnu.org (full text, mbox):
Ting-Wei Lan <lantw44 <at> gmail.com> skribis:
> They are on tmpfs and the order of the two arguments of 'string-
> prefix?' function seems to be wrong, so these 3 entries are ignored.
>
> A simple fix:
>
> diff --git a/tests/guix-environment-container.sh b/tests/guix-environment-container.sh
> index 12da950..d7c1b70 100644
> --- a/tests/guix-environment-container.sh
> +++ b/tests/guix-environment-container.sh
> @@ -72,7 +72,7 @@ mount_test_code="
> ;; correspond to a parent file system.
> ((_ mount (or \"tmpfs\" \"proc\" \"sysfs\" \"devtmpfs\"
> \"devpts\" \"cgroup\" \"mqueue\") _ _ _)
> - (and (string-prefix? mount (getcwd))
> + (and (string-prefix? (getcwd) mount)
> mount))
> ((_ mount _ _ _ _)
> mount)))
>
> After changing the order, guix-environment-container.sh passes.
Good catch! Applied, thanks!
Ludo’.
This bug report was last modified 8 years and 271 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.