summary refs log tree commit diff
path: root/lib/tests
diff options
context:
space:
mode:
authorVictor Engmark <vengmark@linz.govt.nz>2021-11-26 09:58:35 +1300
committerVictor Engmark <vengmark@linz.govt.nz>2021-11-26 10:51:12 +1300
commit41fd1d8626ff890a28c43062e39c5318e72af35e (patch)
tree7fd4479adc36da57b7e7e7076dc5745175662ca3 /lib/tests
parent5e85cd86afd4688ad9c1da8be8dbf1a0d35c9cf2 (diff)
downloadnixpkgs-41fd1d8626ff890a28c43062e39c5318e72af35e.tar
nixpkgs-41fd1d8626ff890a28c43062e39c5318e72af35e.tar.gz
nixpkgs-41fd1d8626ff890a28c43062e39c5318e72af35e.tar.bz2
nixpkgs-41fd1d8626ff890a28c43062e39c5318e72af35e.tar.lz
nixpkgs-41fd1d8626ff890a28c43062e39c5318e72af35e.tar.xz
nixpkgs-41fd1d8626ff890a28c43062e39c5318e72af35e.tar.zst
nixpkgs-41fd1d8626ff890a28c43062e39c5318e72af35e.zip
lib/tests: Clarify assignment
The extra equal sign was confusing, and doesn't seem to be relevant.
Diffstat (limited to 'lib/tests')
-rwxr-xr-xlib/tests/modules.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tests/modules.sh b/lib/tests/modules.sh
index 1c6a907b793..92740f92a16 100755
--- a/lib/tests/modules.sh
+++ b/lib/tests/modules.sh
@@ -44,7 +44,7 @@ checkConfigError() {
     local errorContains=$1
     local err=""
     shift;
-    if err==$(evalConfig "$@" 2>&1 >/dev/null); then
+    if err="$(evalConfig "$@" 2>&1 >/dev/null)"; then
         echo 2>&1 "error: Expected error code, got exit code 0, while evaluating"
         reportFailure "$@"
         return 1