Ensure that the code returned by succes.sh is always correct.

Was not correct when the testsuite crash.
parent 403f5ced
#!/bin/sh
if [ -f ./tests/failed ]
then
exit 1
#!/bin/bash
if [[ -f ./tests/failed ]]; then
exit 1
elif [[ -f ./tests/pass ]]; then
exit 0
else
exit 1
fi
......@@ -21,6 +21,7 @@ dseries_src_root = []; % Initialize path as an array to be updated
opath = path();
system('rm -f failed');
system('rm -f pass');
% Check that the m-unit-tests module is available.
try
......@@ -56,10 +57,11 @@ delete('*.log');
if any(~[r{:,3}])
system('touch failed');
else
system('touch pass');
end
warning on
path(opath);
display_report(r);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment