Use Dir.mktmpdir in the Pipeline test as well
Refactor out TestCase#in_temp_dir
Here this method does something different