diff --git a/packages/system/env/info_centos6/test.coffee b/packages/system/env/info_centos6/test.coffee index 3d7b19606..7cd12bbac 100644 --- a/packages/system/env/info_centos6/test.coffee +++ b/packages/system/env/info_centos6/test.coffee @@ -7,7 +7,7 @@ module.exports = os: arch: 'x86_64' distribution: 'centos' - linux_version: /5\.10\.\d+/ + # linux_version: /5\.10\.\d+/ version: '6.10' config: [ label: 'remote' diff --git a/packages/system/env/info_centos7/test.coffee b/packages/system/env/info_centos7/test.coffee index 3d962e6e2..bf7edc172 100644 --- a/packages/system/env/info_centos7/test.coffee +++ b/packages/system/env/info_centos7/test.coffee @@ -7,7 +7,7 @@ module.exports = os: arch: /x86_64|aarch64/ distribution: 'centos' - linux_version: /5\.10\.\d+/ + # linux_version: /5\.10\.\d+/ version: /7\.9\.\d+/ config: [ label: 'local' diff --git a/packages/system/env/info_ubuntu/test.coffee b/packages/system/env/info_ubuntu/test.coffee index e41172891..b7f3db809 100644 --- a/packages/system/env/info_ubuntu/test.coffee +++ b/packages/system/env/info_ubuntu/test.coffee @@ -7,7 +7,7 @@ module.exports = os: arch: /x86_64|aarch64/ distribution: 'ubuntu' - linux_version: /5\.10\.\d+/ + # linux_version: /5\.10\.\d+/ version: '20.04' config: [ label: 'local' diff --git a/packages/system/env/run.sh b/packages/system/env/run.sh index 07a60eabc..a34698d52 100755 --- a/packages/system/env/run.sh +++ b/packages/system/env/run.sh @@ -3,8 +3,8 @@ set -e cd `pwd`/`dirname ${BASH_SOURCE}` -npx coffee ./authconfig/index.coffee run -npx coffee ./cgroups/index.coffee run +# Require cgroup v1 +# npx coffee ./env/cgroups/index.coffee run ./info_archlinux/run.sh ./info_centos6/run.sh ./info_centos7/run.sh diff --git a/packages/system/test/info/os.coffee b/packages/system/test/info/os.coffee index 278e16ff1..8588007d8 100644 --- a/packages/system/test/info/os.coffee +++ b/packages/system/test/info/os.coffee @@ -8,9 +8,13 @@ return unless tags.system_info_os describe 'system.info.os', -> they 'default options', ({ssh}) -> - {os} = await nikita($ssh: ssh).system.info.os() - Object.keys(os).sort().should.eql [ - 'arch', 'distribution', 'linux_version', 'version' - ] - Object.keys(os).sort().should.eql Object.keys(expect.os) - os.should.match expect.os + nikita + $ssh: ssh + , -> + {stdout: expect.os.linux_version} = await @execute 'uname -r', trim: true unless expect.os.linux_version + {os} = await @system.info.os() + Object.keys(os).sort().should.eql [ + 'arch', 'distribution', 'linux_version', 'version' + ] + Object.keys(os).sort().should.eql Object.keys(expect.os).sort() + os.should.match expect.os