-#!/bin/bash
+#!/usr/bin/env bash
cd $(dirname $0)
. wvtest.sh
WVPASS create_dummy
WVPASS ./script -t '' --expect=More --sendcont="\n" \
--remote-cmd='seq 100|more'
+
+WVSTART Expect vs exiton priority
+WVPASS create_dummy
+WVPASS ./script -t '' --expect="#" --sendcont="exit\n#" --exiton="exit" \
+ --remote-cmd='echo -n "#"; cat' | tee output
+WVPASS test "$(grep exit output | wc -l )" -eq 1