Get more tests working; make Nix build work

This commit is contained in:
Andrew Dunham 2021-07-19 21:13:18 -04:00
parent 86fa81c411
commit 91d2808bfb
4 changed files with 134 additions and 71 deletions

View file

@ -96,6 +96,12 @@ testEpochseconds() {
}
testUserHomedir() {
# TODO(andrew-d): this doesn't work in the Nix sandbox; detect this and
# skip the test for now.
if [ "$HOME" = "/homeless-shelter" ]; then
return
fi
assertEquals "$HOME" "$(user_homedir "$USER")"
}