blob: 496b73d8973da7df97ab2f27746f0814f1a4a72f (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/bash
crmtestout="$1"
[ -d "$crmtestout" ] || { echo "usage: $0 <test-output-dir>"; exit 1; }
for f in $crmtestout/*.diff; do
fil=$(grep -- --- $f | awk '{print $2}' | sed 's/\/usr\/share\/crmsh\/tests/\/test/g')
awk "NR==1{\$2=\"a$fil\"}1" < "$f" | awk "NR==2{\$2=\"b$fil\"}1"
done
|