-
Philip Withnall authored
If an AppArmor malicious test is run as a systemd system job (using `run-test-in-systemd --system`), $HOME will explicitly not be set, which results in the program trying to read (null)/.bash_history, rather than the expected /home/user/.bash_history. Fix that by hard-coding it to use /home/user/.bash_history if $HOME is not set. If the username changes in future, the tests should start failing, which will allow us to update it again. Bug-Apertis: https://bugs.apertis.org/show_bug.cgi?id=681 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Signed-off-by: Philip Withnall <philip.withnall@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D2283
424a35c9