Skip to content

Commit bcb0002

Browse files
committed
run "make test-deps" for securedrop workstation
After all xvfb is necessary because we're now running the tests in the root console as a fix for [1]. Instead of adding yet another dependency directly in OpenQA, this now just installs whichever dependencies are specified in the workstation repo via the "test-deps" make target. [1]: freedomofpress/securedrop-workstation#1414
1 parent 235a5d9 commit bcb0002

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/securedrop/test_dom0.pm

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ sub run {
3232
assert_script_run('rpm -q python3-pytest-cov || sudo qubes-dom0-update -y python3-pytest-cov', timeout => 300);
3333
script_run('ln -s /usr/share/securedrop-workstation-dom0-config/config.json /home/user/securedrop-workstation/config.json');
3434
script_run('ln -s /usr/share/securedrop-workstation-dom0-config/sd-journalist.sec /home/user/securedrop-workstation/sd-journalist.sec');
35-
script_run("env CI=true make -C $sdw_path test | tee make-test.log", timeout => 2400);
35+
36+
# TEMP HACK: avoid running base job to test sdw changes
37+
assert_script_run("sed -e 's/test-deps: build-deps/test-deps: /g' -i Makefile");
38+
39+
assert_script_run("alias dnf=qubes-dom0-update && make -C $sdw_path test-deps", timeout => 300);
40+
assert_script_run("env CI=true make -C $sdw_path test | tee make-test.log", timeout => 2400);
3641

3742

3843
curl_via_netvm; # necessary for upload_logs

0 commit comments

Comments
 (0)