Commit 467fe8d
authored
Fallback to working dir for native lib dir in tests (#133422)
When finding the platform dir to pass to jna we check for
system properties which are either set by internal test gradle code or
or the cli shell script. If neither of thse are set, we are in test code
for an external plugin. This commit fixes the code to use the working
dir in this fallback case. Previously we would have created a bogus
path. Both are the same: external plugin tests can't load ES native libs
since they don't have them available.1 parent a314fe6 commit 467fe8d
File tree
1 file changed
+10
-1
lines changed- libs/native/src/main/java/org/elasticsearch/nativeaccess/lib
1 file changed
+10
-1
lines changedLines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
30 | 39 | | |
31 | 40 | | |
32 | 41 | | |
| |||
0 commit comments