Skip to content

Commit

Permalink
fix test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
daywalker90 committed Sep 26, 2024
1 parent 55e57c2 commit e7c9862
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
python-socketio>=5
websocket-client>=1
websocket-client>=1
pyln-client>=24.05
8 changes: 4 additions & 4 deletions tests/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ fi

# Extract the contents
if [[ $archive_file == *.tar.gz ]]; then
if ! tar -xzvf "$script_dir/$archive_file" -C "$clnrest_dir"; then
if ! sudo tar -xzvf "$script_dir/$archive_file" -C "$clnrest_dir"; then
echo "Error extracting the contents of $archive_file" >&2
exit 1
fi
elif [[ $archive_file == *.zip ]]; then
if ! unzip "$script_dir/$archive_file" -d "$clnrest_dir"; then
if ! sudo unzip "$script_dir/$archive_file" -d "$clnrest_dir"; then
echo "Error extracting the contents of $archive_file" >&2
exit 1
fi
Expand All @@ -70,8 +70,8 @@ else
exit 1
fi

cp "$clnrest_dir/clnrest-rs" "$clnrest_dir/clnrest"
cp "$clnrest_dir/clnrest-rs" "$clnrest_dir/clnrest.py"
sudo cp "$clnrest_dir/clnrest-rs" "$clnrest_dir/clnrest"
sudo cp "$clnrest_dir/clnrest-rs" "$clnrest_dir/clnrest.py"

# Function to check if a Python package is installed
check_package() {
Expand Down

0 comments on commit e7c9862

Please sign in to comment.