--- recepies/smart/smart-test-relocate.pl 2013/11/24 21:03:59 304 +++ recepies/smart/smart-test-relocate.pl 2013/11/24 21:21:17 305 @@ -61,12 +61,12 @@ if (/^#\s+1.+Completed: read failure\s+\S+\s+\S+\s+(\d+)/) { write_sector $1; smart_test $1; - return; + return 1; } } } -smart_last_error; +smart_last_error || smart_test 0; while ( smart ) { warn "sleep $delay s", ( $test_started ? " smart test running..." : "idle" ), "\n";