Skip to content

Commit

Permalink
Fix script directory (#1917)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenElferink authored Dec 4, 2024
1 parent 993ec90 commit 079f2da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/webapp/cypress/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
screenshots/*
7 changes: 5 additions & 2 deletions tests/common/odigos_ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
# Ensure the script fails if any command fails
set -e

scripts_dir="/tests/common"
scripts_dir="$(cd "$(dirname "$0")" && pwd)"
# The above "$scripts_dir" key is used to identify where the script was called from, to ensure all paths are relative to the script.
# This is useful when the script is called from another location, and the paths are relative to the calling script (for exmaple YAML file).

log_filename="$scripts_dir/odigos_ui.log"
back_pid_filename="$scripts_dir/ui_backend.pid"
front_pid_filename="$scripts_dir/ui_frontend.pid"
Expand Down Expand Up @@ -116,7 +119,7 @@ function test() {
# This method prevents duplicated code across multiple-scripts
function main() {
if [ $# -lt 1 ]; then
echo "❌ Error: Incorrect usage - '$0 <function_name> [arguments...]'"
echo "❌ Error: Incorrect usage - '$0 <function_name>'"
exit 1
fi

Expand Down

0 comments on commit 079f2da

Please sign in to comment.