Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
marevol committed Feb 10, 2024
1 parent 7f12894 commit ad96194
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,13 @@ protected Integer getSizeThreshold() {

protected String getRepositoryPath() {
final File tempDirFile = (File) LaServletContextUtil.getServletContext().getAttribute(ServletContext.TEMPDIR);
System.out.println("XXX " + tempDirFile);
if (tempDirFile != null) {
final String tempDir = tempDirFile.getAbsolutePath();
System.out.println("XXX " + tempDir);
if (StringUtil.isNotBlank(tempDir)) {
return tempDir;
System.out.println("XXX " + System.getProperty(JAVA_IO_TMPDIR_KEY));
// return tempDir;
}
}
return System.getProperty(JAVA_IO_TMPDIR_KEY);
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/before_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ git clone https://github.com/codelibs/fess-testdata.git
popd >/dev/null

cat ${temp_log_file} ./fess-*/logs/*.log
curl -s "http://localhost:8080/"

2 changes: 1 addition & 1 deletion src/test/resources/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
touch $(ls -d ./fess-*/logs)/fess-crawler.log
tail -f ./fess-*/logs/*.log &

mvn test -P integrationTests -Dtest.fess.url="http://localhost:8080" -Dtest.search_engine.url="http://localhost:9201" --debug
mvn test -P integrationTests -Dtest.fess.url="http://localhost:8080" -Dtest.search_engine.url="http://localhost:9201"
ret=$?

if [ $ret != 0 ] ; then
Expand Down

0 comments on commit ad96194

Please sign in to comment.