]> git.scottworley.com Git - overonion/commitdiff
set -e doesn't catch failures inside <()
authorScott Worley <scottworley@scottworley.com>
Sun, 22 Oct 2017 07:01:03 +0000 (00:01 -0700)
committerScott Worley <scottworley@scottworley.com>
Sun, 22 Oct 2017 07:01:03 +0000 (00:01 -0700)
overonion_test

index 1f654cc9beebbeb8d8f33d580eafe1f2abeef968..f4da9b40415da20b38da9b1b7e0ed26234cc35ca 100755 (executable)
@@ -7,6 +7,7 @@ test_data=$0
 
 ./overonion-make-key --make_INSECURE_key "$d/key"
 ./overonion e "$d/key" < "$test_data" > "$d/encrypted"
 
 ./overonion-make-key --make_INSECURE_key "$d/key"
 ./overonion e "$d/key" < "$test_data" > "$d/encrypted"
-cmp --verbose <(./overonion d "$d/key" < "$d/encrypted") "$test_data"
+./overonion d "$d/key" < "$d/encrypted" > "$d/roundtripped"
+cmp --verbose "$d/roundtripped" "$test_data"
 rm -r "$d"
 echo PASS
 rm -r "$d"
 echo PASS