travatar icon indicating copy to clipboard operation
travatar copied to clipboard

train-travatar.pl should return non-zero when sort runs out of disk

Open kpu opened this issue 10 years ago • 2 comments

I had a training run where sort ran out of disk space in step 4, printing "No space left on device". Presumably sort returned non-zero. Nonetheless, train-travatar.pl produced an ini file and returned 0. Instead, I'd prefer it fail with non-zero exit code so automation can catch it.

kpu avatar Apr 24 '15 18:04 kpu

Looks like a missing set -e -o pipefail

kpu avatar Apr 24 '15 18:04 kpu

Thanks for the report! I'll try to fix this soon.

neubig avatar Apr 27 '15 15:04 neubig