xref: /aosp_15_r20/external/e2fsprogs/tests/scripts/repair-test (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Worker#!/bin/sh
2*6a54128fSAndroid Build Coastguard Workerfor T in "$*"; do
3*6a54128fSAndroid Build Coastguard Worker	[ -f "$T.failed" -a -d "$T" ] ||
4*6a54128fSAndroid Build Coastguard Worker		{ echo "usage: $0 <test_to_repair>"; exit 1; }
5*6a54128fSAndroid Build Coastguard Worker
6*6a54128fSAndroid Build Coastguard Worker	cp $T.1.log $T/expect.1
7*6a54128fSAndroid Build Coastguard Worker	cp $T.2.log $T/expect.2
8*6a54128fSAndroid Build Coastguard Worker	./test_one $T
9*6a54128fSAndroid Build Coastguard Workerdone
10