nixosTests.pdfding: fix on aarch64-linux
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
@@ -17,6 +17,11 @@
|
||||
secretKeyFile = pkgs.writeText "secretKeyFile" "test123";
|
||||
};
|
||||
|
||||
# NOTE: on aarch64-linux github actions runer due to lack of kvm, we need to delay pdfding start and give it more time to finish
|
||||
systemd.services.pdfding.wantedBy = lib.mkIf pkgs.stdenv.hostPlatform.isAarch64 (lib.mkForce [ ]);
|
||||
systemd.services.pdfding.serviceConfig.TimeoutStartSec =
|
||||
lib.mkIf pkgs.stdenv.hostPlatform.isAarch64 "900";
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
sqlite
|
||||
];
|
||||
@@ -60,6 +65,7 @@
|
||||
|
||||
# create admin
|
||||
machine.wait_for_unit("multi-user.target")
|
||||
machine.succeed("systemctl start pdfding.service")
|
||||
machine.wait_for_open_port(${toString port})
|
||||
machine.succeed("DJANGO_SUPERUSER_PASSWORD=admin pdfding-manage createsuperuser --no-input --username admin --email admin@localhost")
|
||||
|
||||
|
||||
@@ -22,6 +22,14 @@
|
||||
installTestHelpers = true;
|
||||
};
|
||||
|
||||
# NOTE: on aarch64-linux github actions runer due to lack of kvm, we need to delay pdfding start and give it more time to finish
|
||||
systemd.services.pdfding.wantedBy = lib.mkIf pkgs.stdenv.hostPlatform.isAarch64 (lib.mkForce [ ]);
|
||||
systemd.services.pdfding.serviceConfig.TimeoutStartSec =
|
||||
lib.mkIf pkgs.stdenv.hostPlatform.isAarch64 "900";
|
||||
systemd.services.pdfding-background.wantedBy = lib.mkIf pkgs.stdenv.hostPlatform.isAarch64 (
|
||||
lib.mkForce [ ]
|
||||
);
|
||||
|
||||
environment.systemPackages = [
|
||||
config.services.postgresql.finalPackage
|
||||
];
|
||||
@@ -46,6 +54,8 @@
|
||||
|
||||
# create admin
|
||||
machine.wait_for_unit("multi-user.target")
|
||||
machine.succeed("systemctl start pdfding.service")
|
||||
machine.succeed("systemctl start pdfding-background.service")
|
||||
machine.wait_for_open_port(${toString port})
|
||||
|
||||
machine.succeed("DJANGO_SUPERUSER_PASSWORD=admin pdfding-manage createsuperuser --no-input --username admin --email admin@localhost")
|
||||
|
||||
@@ -37,6 +37,14 @@ in
|
||||
installTestHelpers = true;
|
||||
};
|
||||
|
||||
# NOTE: on aarch64-linux github actions runer due to lack of kvm, we need to delay pdfding start and give it more time to finish
|
||||
systemd.services.pdfding.wantedBy = lib.mkIf pkgs.stdenv.hostPlatform.isAarch64 (lib.mkForce [ ]);
|
||||
systemd.services.pdfding.serviceConfig.TimeoutStartSec =
|
||||
lib.mkIf pkgs.stdenv.hostPlatform.isAarch64 "900";
|
||||
systemd.services.pdfding-background.wantedBy = lib.mkIf pkgs.stdenv.hostPlatform.isAarch64 (
|
||||
lib.mkForce [ ]
|
||||
);
|
||||
|
||||
# Setup a local garage service for the backup feature
|
||||
# taken from garage nixosTest
|
||||
services.garage = {
|
||||
@@ -113,6 +121,8 @@ in
|
||||
|
||||
# create admin
|
||||
machine.wait_for_unit("multi-user.target")
|
||||
machine.succeed("systemctl start pdfding.service")
|
||||
machine.succeed("systemctl start pdfding-background.service")
|
||||
machine.wait_for_open_port(${toString port})
|
||||
machine.succeed("DJANGO_SUPERUSER_PASSWORD=admin pdfding-manage createsuperuser --no-input --username admin --email admin@localhost")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user