]> rtime.felk.cvut.cz Git - novaboot.git/blobdiff - tests/server.wv
tests: Make shebangs NixOS compatible
[novaboot.git] / tests / server.wv
index 94fab884db03a489ba41b013e3b98cd3b6512341..86bea7cef577a688f373686a4d0eda3bb6b30710 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 cd $(dirname $0)
 . wvtest.sh
@@ -171,9 +171,9 @@ target_config="\
 "
 EOF
 WVFAIL novaboot --ssh novaboot-test@localhost <<<"load file < date"
-novaboot --ssh novaboot-test@localhost <<<"load file < date" 2>&1 >/dev/null |\
-    tee >(WVPASS grep -q -F 'Unknown option: make') \
-       >(WVPASS grep -q -F 'Error processing configuration from the server')
+stderr=$(novaboot --ssh novaboot-test@localhost <<<"load file < date" 2>&1 >/dev/null)
+echo "$stderr" | WVPASS grep -q -F 'Unknown option: make'
+echo "$stderr" | WVPASS grep -q -F 'Error processing configuration from the server'
 
 WVSTART "Novaboot --ssh remote config fails on unknown arguments"
 WVPASS sudo_ tee "$SHELLRC" <<EOF