Join GitHub today
Fix for "File name too long" error with RSpec on Linux #26
Hi, when I use
To avoid this error, I've added an environment variable CI_MAX_FILENAME_LENGTH which, if set, truncates any generated XML files whose absolute file path would exceed that length. It adds a randomly generated suffix to each truncated file to avoid overwrites from name conflicts. With this change (and CI_MAX_FILENAME_LENGTH set to 150) we're able to run our substantial body of RSpec tests on our Linux CI machine and have Jenkins report the results nicely as intended.
Please would you consider accepting this patch into your official repo?