From 587825a1e4f4f515de157c9dff619a2d98e9ecc2 Mon Sep 17 00:00:00 2001 From: Alexander Sosedkin Date: Sun, 6 Nov 2022 20:39:09 +0100 Subject: [PATCH] tests: extend guessing $FLAKE_URL to non-github cases --- tests/on-device/lib.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/on-device/lib.bash b/tests/on-device/lib.bash index fa72be1..88f086b 100644 --- a/tests/on-device/lib.bash +++ b/tests/on-device/lib.bash @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2021, see AUTHORS. Licensed under MIT License, see LICENSE. +# Copyright (c) 2019-2022, see AUTHORS. Licensed under MIT License, see LICENSE. # call _setup when defining a setup function in your test _setup() { @@ -20,6 +20,8 @@ _setup() { FLAKE_URL=github:$repoUser/$repoName/$repoBranch elif [[ "$channelUrl" == file:///n-o-d/archive.tar.gz ]]; then FLAKE_URL=/n-o-d/unpacked + else + FLAKE_URL="$channelUrl" fi echo "autodetected flake url: $FLAKE_URL"