diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-02-25 15:14:11 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-02-25 15:14:11 +0300 |
commit | c07b140808440aa603b5664b603b78a04f63328a (patch) | |
tree | 650af09090e609d1a1e7e9130f8b1d672563bffb /tests/pkg-configure.testscript | |
parent | 6735e1502f0bd0282f8a7c9444247396c79214a5 (diff) |
Disable tests failing for root user on POSIX systems
Diffstat (limited to 'tests/pkg-configure.testscript')
-rw-r--r-- | tests/pkg-configure.testscript | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/pkg-configure.testscript b/tests/pkg-configure.testscript index ab712c0..00963dc 100644 --- a/tests/pkg-configure.testscript +++ b/tests/pkg-configure.testscript @@ -76,6 +76,12 @@ pkg_unpack += -d cfg 2>! rep_add += -d cfg 2>! rep_fetch += -d cfg --auth all 2>! +posix = ($cxx.target.class != 'windows') + ++if $posix + id -u | set uid +end + : no-name : $clone_cfg; @@ -198,7 +204,7 @@ $* libhello libhello 2>>EOE != 0 : broken : -if ($cxx.target.class != 'windows') +if ($posix && "$uid" != '0') { : disfigure-failed : |