Commit bcdc16ad authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

Add KEEP_TEST_SUBDIR to test infrastructure

Setting the KEEP_TEST_SUBDIR environment variable to 1 before invoking
the API tests instructs the test infrastructure to not delete the test
subdir, even if the tests finished succesfully.
parent 326f4e30
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -160,8 +160,11 @@ test_env::~test_env() {
}

void test_env::notify_success() {

    if(::getenv("KEEP_TEST_SUBDIR") == NULL) {
        m_test_succeeded = true;
    }
}

std::tuple<const char*, bfs::path> test_env::create_namespace(std::string nsid, bfs::path mnt, size_t quota) {