Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ESProjects
EATA
Commits
b3de92ec
Commit
b3de92ec
authored
Feb 03, 2022
by
Pietro Braghieri
Browse files
improve test skipping in case of windows
parent
88394efd
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/eu.fbk.tools.adapter.test/src/main/java/eu/fbk/tools/adapter/script/RedundantArchitectureGeneratorTest.java
View file @
b3de92ec
...
...
@@ -18,6 +18,8 @@ import java.net.MalformedURLException;
import
java.util.concurrent.TimeoutException
;
import
org.apache.commons.lang3.tuple.Triple
;
import
org.junit.Assume
;
import
org.junit.Before
;
import
org.junit.Test
;
import
eu.fbk.tools.adapter.ToolRunner
;
...
...
@@ -26,15 +28,16 @@ import eu.fbk.tools.adapter.script.GenerateRedundantArchitecture.RedundantArchit
public
class
RedundantArchitectureGeneratorTest
extends
RedundantArchitectureGeneratorBase
{
@Before
public
void
beforeMethod
()
{
// If Win OS, this test is not included because the Python scripts works only on Linux
Assume
.
assumeFalse
(
System
.
getProperty
(
"os.name"
).
toLowerCase
().
startsWith
(
"win"
));
}
@Test
public
void
test
()
throws
MalformedURLException
{
final
String
os
=
System
.
getProperty
(
"os.name"
);
if
(
os
.
toLowerCase
().
contains
(
"windows"
)
)
{
return
;
}
final
GenerateRedundantArchitecture
function
=
new
GenerateRedundantArchitecture
();
function
.
setArchitectureType
(
RedundantArchitectureType
.
linear
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment