diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-03-19 08:20:40 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-03-19 08:20:40 +0200 |
commit | ad8f068b2e31df43dbd9cb2f759ebf5f7e6680dc (patch) | |
tree | 73ee22ff6dd0221ab9b09062ab2dfc015cf56a50 /check | |
parent | 85e2c171ed3b6af9586d14e33241c026a3123b0c (diff) | |
download | obnam2-ad8f068b2e31df43dbd9cb2f759ebf5f7e6680dc.tar.gz |
build: don't run tests as root
Diffstat (limited to 'check')
-rwxr-xr-x | check | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -30,6 +30,11 @@ sp-docgen obnam.md -o obnam.pdf sp-codegen obnam.md -o test.py rm -f test.log -$hideok python3 test.py --log test.log "$@" +if [ "$(id -un)" = root ] +then + echo Not running tests as root. +else + $hideok python3 test.py --log test.log "$@" +fi echo "Everything seems to be in order." |