Commit d17850c2 authored by Christopher Jan-Steffen Brix's avatar Christopher Jan-Steffen Brix
Browse files

Removed local python path from tests

parent d989dec2
Pipeline #107602 failed with stages
in 52 seconds
...@@ -197,7 +197,7 @@ public class GenerationTest extends AbstractSymtabTest { ...@@ -197,7 +197,7 @@ public class GenerationTest extends AbstractSymtabTest {
public void testDontRetrain1() { public void testDontRetrain1() {
// The training hash is stored during the first training, so the second one is skipped // The training hash is stored during the first training, so the second one is skipped
Log.getFindings().clear(); Log.getFindings().clear();
String[] args = {"-m", "src/test/resources/models/", "-r", "cifar10.Cifar10Classifier", "-b", "MXNET", "-p", "/home/christopher/anaconda3/bin/python"}; String[] args = {"-m", "src/test/resources/models/", "-r", "cifar10.Cifar10Classifier", "-b", "MXNET"};
EMADLGeneratorCli.main(args); EMADLGeneratorCli.main(args);
assertTrue(Log.getFindings().isEmpty()); assertTrue(Log.getFindings().isEmpty());
...@@ -215,7 +215,7 @@ public class GenerationTest extends AbstractSymtabTest { ...@@ -215,7 +215,7 @@ public class GenerationTest extends AbstractSymtabTest {
Log.getFindings().clear(); Log.getFindings().clear();
createHashFile(); createHashFile();
String[] args = {"-m", "src/test/resources/models/", "-r", "cifar10.Cifar10Classifier", "-b", "MXNET", "-p", "/home/christopher/anaconda3/bin/python"}; String[] args = {"-m", "src/test/resources/models/", "-r", "cifar10.Cifar10Classifier", "-b", "MXNET"};
EMADLGeneratorCli.main(args); EMADLGeneratorCli.main(args);
assertTrue(Log.getFindings().size() == 1); assertTrue(Log.getFindings().size() == 1);
assertTrue(Log.getFindings().get(0).getMsg().contains("skipped")); assertTrue(Log.getFindings().get(0).getMsg().contains("skipped"));
...@@ -227,7 +227,7 @@ public class GenerationTest extends AbstractSymtabTest { ...@@ -227,7 +227,7 @@ public class GenerationTest extends AbstractSymtabTest {
public void testDontRetrain3() { public void testDontRetrain3() {
// Multiple instances of the first NN are used. Only the first one should cause a training // Multiple instances of the first NN are used. Only the first one should cause a training
Log.getFindings().clear(); Log.getFindings().clear();
String[] args = {"-m", "src/test/resources/models/", "-r", "instanceTestCifar.MainC", "-b", "MXNET", "-p", "/home/christopher/anaconda3/bin/python"}; String[] args = {"-m", "src/test/resources/models/", "-r", "instanceTestCifar.MainC", "-b", "MXNET"};
EMADLGeneratorCli.main(args); EMADLGeneratorCli.main(args);
assertTrue(Log.getFindings().size() == 1); assertTrue(Log.getFindings().size() == 1);
assertTrue(Log.getFindings().get(0).getMsg().contains("skipped")); assertTrue(Log.getFindings().get(0).getMsg().contains("skipped"));
...@@ -239,7 +239,7 @@ public class GenerationTest extends AbstractSymtabTest { ...@@ -239,7 +239,7 @@ public class GenerationTest extends AbstractSymtabTest {
Log.getFindings().clear(); Log.getFindings().clear();
createHashFile(); createHashFile();
String[] args = {"-m", "src/test/resources/models/", "-r", "cifar10.Cifar10Classifier", "-b", "MXNET", "-f", "y", "-p", "/home/christopher/anaconda3/bin/python"}; String[] args = {"-m", "src/test/resources/models/", "-r", "cifar10.Cifar10Classifier", "-b", "MXNET", "-f", "y"};
EMADLGeneratorCli.main(args); EMADLGeneratorCli.main(args);
assertTrue(Log.getFindings().isEmpty()); assertTrue(Log.getFindings().isEmpty());
......
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