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 675bc8c commit f682b72
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 4 additions & 5 deletions test-e2e/configuration/enforce-on-log-match-with-error.sh
Original file line number Diff line number Diff line change
@@ -9,14 +9,13 @@ $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

# 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
# This is the list of exit codes for wget:
# 4 Network failure

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

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
@@ -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

0 comments on commit f682b72

Please sign in to comment.