Skip to content

Commit 1d33f53

Browse files
committed
Allowed e2e tests to run fractal-server from branch
1 parent 86e0320 commit 1d33f53

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

playwright.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default defineConfig({
7474

7575
webServer: [
7676
{
77-
command: './tests/start-test-server.sh 2.10.1',
77+
command: './tests/start-test-server.sh --branch 2153-data-structure-for-filters',
7878
port: 8000,
7979
waitForPort: true,
8080
stdout: 'pipe',

tests/start-test-server.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
set -e
55

66
# Check fractal-server version argument
7-
if [ $# -ne 1 ]; then
8-
echo "Usage: $0 <fractal-server-version>"
7+
if [ $# -eq 2 ] && [ "$1" = "--branch" ]; then
8+
pip_arg="git+https://github.com/fractal-analytics-platform/fractal-server.git@$2"
9+
elif [ $# -eq 1 ]; then
10+
pip_arg="fractal-server==$1"
11+
else
12+
echo "Usage: $0 [--branch] <fractal-server-version>"
913
exit 2
1014
fi
1115

@@ -30,7 +34,7 @@ if [ ! -d "$fractal_server_test_path" ]; then
3034
# Virtualenv, dependencies and db
3135
python3 -m venv myenv
3236
. myenv/bin/activate
33-
pip install "fractal-server==$1"
37+
pip install "$pip_arg"
3438
fractalctl set-db
3539
else
3640
cd "$fractal_server_test_path"

0 commit comments

Comments
 (0)