I was debugging why this test to create a PDF worked in the shell, but not from Jenkins (both environments running as the same user):
ok( open($fh, "|-", "prince - 2>/dev/null $test_file"), "Open
+$test_file for writing" );
print $fh "<html><body><h1>Hello, world!</h1></body></html>";
ok( close($fh), "Close $test_file");
Turns out it was because the PATH didn't exist in the Jenkins environment.
Problem solved, but now I'm left scratching my head.
ok 3 - Open /opt/humana/svn/checkouts/rosalind-repo/prod/tmp/testfile.
+pdf for writing
not ok 4 - Close /opt/humana/svn/checkouts/rosalind-repo/prod/tmp/test
Why would the open succeed to an unknown executable? Is it because it dosen't fail until you attempt to use it? For some reason that feels a little off to me. What am I missing?