Files
drharness/tests/test_rebase_parser_missing_role.sh

19 lines
367 B
Bash
Executable File

#!/bin/bash
# test_rebase_parser_missing_role.sh - Missing role produces error
test_name="missing_role"
content="pick 0"
set +e
OUTPUT=$("${DRHARNESS}" -z 3 "$content" 2>&1) || true
set -e
if ! echo "$OUTPUT" | grep -q "missing role"; then
echo "FAIL: $test_name - expected 'missing role' error"
echo "Got: $OUTPUT"
exit 1
fi
echo "PASS: $test_name"