Skip to content

Commit

Permalink
systemtests: disable python-bareos when running inside of container
Browse files Browse the repository at this point in the history
The python-bareos-test always fails when run in container
  • Loading branch information
pstorz committed Jul 16, 2020
1 parent 51690e5 commit fe66170
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions systemtests/CMakeLists.txt
Expand Up @@ -685,10 +685,19 @@ else()
list(APPEND SYSTEM_TESTS_DISABLED "dbcopy-mysql-postgresql")
endif()

# python-bareos fails inside of container
if(EXISTS /run/.containerenv)
message(STATUS "detected container environment, disabling python-bareos")
set(in_container TRUE)
else()
set(in_container FALSE)
endif()

# python-bareos-test does not work on installed files
if(PYTHON_EXECUTABLE
AND PYTHON
AND NOT RUN_SYSTEMTESTS_ON_INSTALLED_FILES
AND NOT in_container
)
list(APPEND SYSTEM_TESTS "python-bareos")
else()
Expand Down

0 comments on commit fe66170

Please sign in to comment.