Skip to content

Commit 6a7b771

Browse files
committed
Fix klee-stats error
1 parent 7b3f9a8 commit 6a7b771

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

docker/release_distribution_scripts/utbot_run_system.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ then
3030
exit 1
3131
fi
3232

33-
#set UTBot release flag
34-
export UTBOT_RELEASE=true
35-
3633
# Retrieving path to $UTBOT_ALL from absolute path to current script
3734
export UTBOT_ALL=$CURRENT_FOLDER
3835

server/src/KleeRunner.cpp

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,7 @@ void KleeRunner::processBatchWithoutInteractive(MethodKtests &ktestChunk,
220220
testMethod.methodName);
221221
tests.commentBlocks.emplace_back(std::move(message));
222222
}
223-
char *is_release = getenv("UTBOT_RELEASE");
224-
if (is_release == nullptr || strcmp(is_release, "false") == 0 ||
225-
strcmp(is_release, "0") == 0) {
226-
writeKleeStats(kleeOut);
227-
}
223+
writeKleeStats(kleeOut);
228224
}
229225

230226
if (!CollectionUtils::containsKey(ktestChunk, testMethod) ||
@@ -363,11 +359,10 @@ void KleeRunner::processBatchWithInteractive(const std::vector<tests::TestMethod
363359
method.methodName);
364360
tests.commentBlocks.emplace_back(std::move(message));
365361
}
366-
char *is_release = getenv("UTBOT_RELEASE");
367-
if (is_release == nullptr || strcmp(is_release, "false") == 0 ||
368-
strcmp(is_release, "0") == 0) {
369-
writeKleeStats(newKleeOut);
370-
}
362+
}
363+
364+
if (fs::exists(kleeOut)) {
365+
writeKleeStats(kleeOut);
371366
}
372367

373368
if (!CollectionUtils::containsKey(ktestChunk, method) ||

0 commit comments

Comments
 (0)