@@ -24,7 +24,9 @@ LATEST_STABLE_RELEASE=$(jq -r '[.[] | select(.prerelease==false)] | .[0].tag_nam
24
24
function get_current_version {
25
25
local app_dir
26
26
app_dir=" $( get_test_utls_dir) /../.."
27
- cargo run -q --manifest-path=" $app_dir /Cargo.toml" --bin mullvad-version
27
+ # HACK:
28
+ echo " 2024.4-dev-7781ac"
29
+ # cargo run -q --manifest-path="$app_dir/Cargo.toml" --bin mullvad-version
28
30
}
29
31
30
32
CURRENT_VERSION=$( get_current_version)
@@ -150,6 +152,13 @@ function download_app_package {
150
152
fi
151
153
}
152
154
155
+ function is_linux {
156
+ case $1 in
157
+ debian* |ubuntu* |fedora* ) true ;;
158
+ * ) false ;;
159
+ esac
160
+ }
161
+
153
162
function get_e2e_filename {
154
163
local version=$1
155
164
local os=$2
@@ -255,7 +264,11 @@ function run_tests_for_os {
255
264
local test_dir
256
265
test_dir=$( get_test_utls_dir) /..
257
266
pushd " $test_dir "
258
- if ! RUST_LOG_STYLE=always cargo run --bin test-manager \
267
+ TEST_MANAGER_BIN=" cargo run --bin test-manager"
268
+ if is_linux " $vm " ; then
269
+ TEST_MANAGER_BIN=" ./dist/test-manager"
270
+ fi
271
+ if ! RUST_LOG_STYLE=always " $TEST_MANAGER_BIN " \
259
272
run-tests \
260
273
--account " ${ACCOUNT_TOKEN:? Error: ACCOUNT_TOKEN not set} " \
261
274
--app-package " ${APP_PACKAGE:? Error: APP_PACKAGE not set} " \
@@ -278,7 +291,7 @@ function build_current_version {
278
291
app_dir=" $( get_test_utls_dir) /../.."
279
292
local app_filename
280
293
# TODO: TEST_OS must be set to local OS manually, should be set automatically
281
- app_filename=$( get_app_filename " $CURRENT_VERSION " " ${TEST_OS:? Error: TEST_OS not set} " )
294
+ app_filename=$( get_app_filename " $CURRENT_VERSION " " ${TEST_OS:? Error: TEST_OS not set} " )
282
295
local package_dir
283
296
package_dir=$( get_package_dir)
284
297
local app_package=" $package_dir " /" $app_filename "
@@ -309,4 +322,4 @@ function build_current_version {
309
322
else
310
323
echo " GUI e2e executable for current version already exists at $gui_test_bin , skipping build"
311
324
fi
312
- }
325
+ }
0 commit comments