Re: Problems running eui in a docker image

new topic     » goto parent     » topic index » view thread      » older message » newer message
axtens_bruce said...

So I changed > to 2> and changed from eutest to eui. Now it appears to work properly. Why oh why?

It looks like everything in std/unittest.e is reporting on STDERR, but eutest itself writes to STDOUT. Not sure if that's by mistake or design.

Best solution is probably to redirect STDERR to STDOUT and capture everything from STDOUT (which now includes STDERR) to your output file.

So change line 81 back to what you had and then add "2>&1" to the command line string. I'd also pull the input file out to a variable for good measure.

If I'm understanding the process correctly, everything is working for me with this code and bin/run-tests-in-docker.sh is completing successfully (I think).

sequence infile = join_path({solution_dir,"t_" & slug & ".e"}) 
sequence outfile = join_path({output_dir,"t_" & slug & ".out"}) 
sequence cmd = build_commandline({"eutest",infile,">",outfile,"2>&1"}) 
system(cmd,2) 

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu