Skip to content

Commit

Permalink
tests: rename files
Browse files Browse the repository at this point in the history
  • Loading branch information
stfsy committed Jan 4, 2025
1 parent 75ea670 commit d2faf17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test-e2e/configuration/enforce-on-log-match-with-error.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $main_path run \
--allow-file-system-read \
--no-enforce-on-startup \
--trigger-enforce-on-log-match="enforce gatekeeping" \
--on-syscall-denied=kill \
--on-syscall-denied=error \
bash -c $script_path/log-match.bash

if [[ $? -ne 4 && $? -ne 159 ]]; then
Expand Down
9 changes: 5 additions & 4 deletions test-e2e/configuration/enforce-on-log-match-with-kill.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ $main_path run \
--allow-file-system-read \
--no-enforce-on-startup \
--trigger-enforce-on-log-match="enforce gatekeeping" \
--on-syscall-denied=error \
--on-syscall-denied=kill \
bash -c $script_path/log-match.bash

# This is the list of exit codes for wget:
# 4 Network failure
# https://specificlanguages.com/posts/2022-07/14-exit-code-137/
# Exit code 137 is Linux-specific and means that your process was killed by a signal, namely SIGKILL.
# The main reason for a process getting killed by SIGKILL on Linux (unless you do it yourself) is running out of memory.1

if [[ $? -ne 4 ]] || [[ $? -eq 159 ]]; then
if [[ $? -ne 137 ]]; then
exit 1
fi

Expand Down

0 comments on commit d2faf17

Please sign in to comment.