Fix Perl error in tests.api

[?]
Jun 15, 2015, 9:47 AM
5QYMALGUFECBH44BDVLFRZR5CQ24UTSEELVMAGDNKY2JAKBZKQ3AC

Dependencies

  • [2] WQ2VQ7H3 Use hydra-module.nix in the tests
  • [3] KYSBJAYN Allow dashes in jobset input names
  • [4] YI3BZG5N Cleanup Jobset serialization
  • [5] MQYHIUEE Cleanup eval serialization
  • [6] LZVO64YG Merge in the first bits of the API work
  • [7] 4VYSDP4I Add eager fetching of relations and enable that for jobset->jobsetinputs
  • [*] T4LLYESZ * Nix expression for building Hydra.

Change contents

  • replacement in release.nix at line 200
    [2.1095][2.1095:1223]()
    ( "su hydra -c \"hydra-create-user root --email-address 'e.dolstra\@tudelft.nl' --password foobar --role admin\""
    [2.1095]
    [2.1223]
    ( "su - hydra -c \"hydra-create-user root --email-address 'alice\@example.org' --password foobar --role admin\""
  • replacement in release.nix at line 210
    [2.1530][2.1530:1708]()
    $machine->mustSucceed("su hydra -c 'NIX_STORE_DIR=/tmp/nix/store NIX_LOG_DIR=/tmp/nix/var/log/nix NIX_STATE_DIR=/tmp/nix/var/nix DBIC_TRACE=1 hydra-server -d' >&2 &");
    [2.1530]
    [3.1606]
    $machine->mustSucceed("su - hydra -c 'NIX_STORE_DIR=/tmp/nix/store NIX_LOG_DIR=/tmp/nix/var/log/nix NIX_STATE_DIR=/tmp/nix/var/nix NIX_REMOTE= DBIC_TRACE=1 hydra-server -d' >&2 &");
  • replacement in release.nix at line 214
    [2.1740][2.1740:1822]()
    $machine->mustSucceed("su hydra -c 'perl ${./tests/api-test.pl}' >&2");
    [2.1740]
    [3.1720]
    $machine->mustSucceed("su - hydra -c 'perl ${./tests/api-test.pl}' >&2");
  • replacement in tests/api-test.pl at line 52
    [3.245][2.2225:2360]()
    system("NIX_STORE_DIR=/tmp/nix/store NIX_LOG_DIR=/tmp/nix/var/log/nix NIX_STATE_DIR=/tmp/nix/var/nix hydra-evaluator sample default");
    [3.245]
    [3.38737]
    system("NIX_STORE_DIR=/tmp/nix/store NIX_LOG_DIR=/tmp/nix/var/log/nix NIX_STATE_DIR=/tmp/nix/var/nix NIX_REMOTE= hydra-evaluator sample default");