tests: Fix race condition in profile locking test.
authorLudovic Courtès <ludo@gnu.org>
Fri, 29 Nov 2019 14:31:04 +0000 (15:31 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 29 Nov 2019 14:54:20 +0000 (15:54 +0100)
commitdac7928d502d9ba4fc6a9621e5b2b15019d92d5b
tree25c948721bb3117f80536b8cd1cc5bf3b384e765
parent3f8e890d91975a26ecb417e9115805159aa3170d
tests: Fix race condition in profile locking test.

Previously, there was a possibility that "guix install emacs" would grab
the lock before "guix package -m $module_dir/manifest.scm".  When that
happened, the test would start building Emacs and all its dependencies,
which could take a while and some disk space.

This is a followup to b1fb663404894268b5ee92c040f12c52c0bee425.

* tests/guix-package.sh: In profile locking test, emit
"$module_dir/ready" from the manifest and wait for it to exist before
running "guix install emacs".
tests/guix-package.sh