1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-23 03:19:42 +01:00

tests/eval-test: clean up

This commit is contained in:
zimbatm 2017-12-25 17:23:16 +00:00 committed by Yegor Timoshenko
parent 83890749b2
commit 459ac00c62
No known key found for this signature in database
GPG key ID: C34BF9DCC9DF8210

View file

@ -1,19 +1,15 @@
#!/bin/sh #!/bin/sh
cd $(dirname $0)/.. set -e
find=(find . -name default.nix) cd "$(dirname "$0")/.."
for profile in `${find[@]}`; do for profile in $(find . -name default.nix); do
echo evaluating $profile >&2 echo evaluating $profile >&2
nix-build '<nixpkgs/nixos>' \ nix-build '<nixpkgs/nixos>' \
-I nixos-config=tests/eval-test.nix \ -I nixos-config=tests/eval-test.nix \
-I nixos-hardware-profile=$profile \ -I nixos-hardware-profile=$profile \
-A system \ -A system \
--dry-run --dry-run
if [ $? -ne 0 ]; then
exit 1
fi
done done