nixosTests.signal-desktop: migrate to runTest

Part of #386873
This commit is contained in:
Piotr Kwiecinski 2025-04-19 18:17:50 +02:00
parent 43bdffa3ba
commit d7e7243d4c
No known key found for this signature in database
GPG Key ID: EC0DE1CB9D5258B4
2 changed files with 71 additions and 74 deletions

View File

@ -1205,7 +1205,7 @@ in
shadowsocks = handleTest ./shadowsocks { };
shattered-pixel-dungeon = handleTest ./shattered-pixel-dungeon.nix { };
shiori = handleTest ./shiori.nix { };
signal-desktop = handleTest ./signal-desktop.nix { };
signal-desktop = runTest ./signal-desktop.nix;
silverbullet = handleTest ./silverbullet.nix { };
simple = handleTest ./simple.nix { };
sing-box = handleTest ./sing-box.nix { };

View File

@ -1,7 +1,5 @@
import ./make-test-python.nix (
{ pkgs, ... }:
let
{ pkgs, ... }:
let
sqlcipher-signal = pkgs.writeShellScriptBin "sqlcipher" ''
set -eu
@ -11,8 +9,8 @@ import ./make-test-python.nix (
readonly SQL="SELECT * FROM sqlite_master where type='table'"
${pkgs.sqlcipher}/bin/sqlcipher "$DB" "PRAGMA key = \"x'$KEY'\"; $SQL"
'';
in
{
in
{
name = "signal-desktop";
meta = with pkgs.lib.maintainers; {
maintainers = [
@ -78,5 +76,4 @@ import ./make-test-python.nix (
"su - alice -c 'sqlcipher ~/.config/Signal/sql/db.sqlite'"
))
'';
}
)
}