Skip to content

Commit

Permalink
Use assume
Browse files Browse the repository at this point in the history
  • Loading branch information
dhadka committed Dec 31, 2023
1 parent 92cd1ca commit 6c8f724
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ jobs:
- name: Setup Matlab (Linux only)
uses: matlab-actions/setup-matlab@v1
if: runner.os == 'Linux'
- name: Test Matlab (Linux only)
if: runner.os == 'Linux'
run: |
matlab -batch "exit(0)"
- name: Setup Radar Waveform code (Linux only)
if: runner.os == 'Linux'
run: |
Expand Down
3 changes: 0 additions & 3 deletions native/Radar/bin/startEval.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
port = libpointer
end

disp('Using port')
disp(port)

disp('Waiting for connection...');
calllib(libname, 'MOEA_Init_socket', nobjs, ncons, port);
disp('Connection established...');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.junit.Ignore;
import org.junit.Test;
import org.moeaframework.Executor;
import org.moeaframework.core.FrameworkException;
import org.moeaframework.core.spi.ProblemFactory;
import org.moeaframework.problem.NativeCommand;

Expand Down Expand Up @@ -57,18 +56,12 @@ protected void requires(NativeCommand command) {

if (process.isAlive()) {
process.destroy();
throw new FrameworkException("Process did not terminate within configured timeout");
//Assume.assumeTrue("Process did not terminate within configured timeout", false);
Assume.assumeTrue("Process did not terminate within configured timeout", false);
}

if (process.exitValue() != 0) {
throw new FrameworkException("Process exited with non-zero result code");
}

//Assume.assumeTrue("Process exited with non-zero result code", process.exitValue() == 0);
Assume.assumeTrue("Process exited with non-zero result code", process.exitValue() == 0);
} catch (Exception e) {
throw new FrameworkException("Caught exception when invoking process", e);
//Assume.assumeNoException("Caught exception when invoking process", e);
Assume.assumeNoException("Caught exception when invoking process", e);
}
}

Expand Down

0 comments on commit 6c8f724

Please sign in to comment.