Starting lpcraft, version 0.0.49 Logging execution to '/home/buildd/.local/state/lpcraft/log/lpcraft-20230316-124144.795894.log' Launching environment for bionic/amd64 Checking for instance 'lpcraft-tree-519414-bionic-amd64' in project 'lpcraft' in remote 'local' Instance exists and is not running. Starting instance. Running ['apt', 'update'] :: :: WARNING: apt does not have a stable CLI interface. Use with caution in scripts. :: :: Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease :: Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease :: Hit:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease :: Hit:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease :: Reading package lists... :: Building dependency tree... :: Reading state information... :: 107 packages can be upgraded. Run 'apt list --upgradable' to see them. Installing system packages Running ['apt', 'install', '-y', 'sudo'] :: :: WARNING: apt does not have a stable CLI interface. Use with caution in scripts. :: :: Reading package lists... :: Building dependency tree... :: Reading state information... :: sudo is already the newest version (1.8.21p2-3ubuntu1.5). :: 0 upgraded, 0 newly installed, 0 to remove and 107 not upgraded. Running command for the job... Running ['bash', '--noprofile', '--norc', '-ec', './lpcraft-runner sudo\n'] :: Copying: test-sudo.py :: Copying: testlib.py :: Copying: install-packages :: Copying: packages-helper :: Skipping 'private/qrt/sudo.py' (couldn't find 'private') :: :: Test files: /tmp/qrt-test-sudo.tar.gz :: :: To run, copy the tarball somewhere, then do: :: $ tar -zxf qrt-test-sudo.tar.gz :: $ cd ./qrt-test-sudo :: $ sudo ./install-packages test-sudo.py :: $ ./test-sudo.py -v :: Reading package lists... :: Building dependency tree... :: Reading state information... :: The following additional packages will be installed: :: python3-ptyprocess :: Suggested packages: :: python-pexpect-doc :: The following NEW packages will be installed: :: python3-pexpect python3-ptyprocess :: 0 upgraded, 2 newly installed, 0 to remove and 107 not upgraded. :: Need to get 55.1 kB of archives. :: After this operation, 244 kB of additional disk space will be used. :: Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-ptyprocess all 0.5.2-1 [12.7 kB] :: Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-pexpect all 4.2.1-1 [42.4 kB] :: Fetched 55.1 kB in 0s (2279 kB/s) :: Selecting previously unselected package python3-ptyprocess. :: (Reading database ... 17083 files and directories currently installed.) :: Preparing to unpack .../python3-ptyprocess_0.5.2-1_all.deb ... :: Unpacking python3-ptyprocess (0.5.2-1) ... :: Selecting previously unselected package python3-pexpect. :: Preparing to unpack .../python3-pexpect_4.2.1-1_all.deb ... :: Unpacking python3-pexpect (4.2.1-1) ... :: Setting up python3-ptyprocess (0.5.2-1) ... :: Setting up python3-pexpect (4.2.1-1) ... :: Requiring 'lsb-release' ... :: Requiring 'python3-pexpect' ... :: Requiring 'sudo' ... :: Requiring 'dash' ... :: Requiring 'build-essential' ... :: Running test: './test-sudo.py' distro: 'Ubuntu 18.04' kernel: '5.4.0-139.156 (Ubuntu 5.4.0-139.156-generic 5.4.224)' arch: 'amd64' uid: 0/0 SUDO_USER: 'ubuntu') :: test_CVE_2010_0427_aa_setup (__main__.SudoTest) :: Setup CVE-2010-0427 tests ... ok :: test_CVE_2010_0427_bb_preserve_groups (__main__.SudoTest) :: Test preserve groups (-P) ... ok :: test_CVE_2010_0427_cc (__main__.SudoTest) :: Test CVE-2010-0427 ... ok :: test_CVE_2010_0427_zz_cleanup (__main__.SudoTest) :: Cleanup CVE-2010-0427 tests ... ok :: test_CVE_2010_1646_aa_setup (__main__.SudoTest) :: Setup CVE-2010-1646 tests ... ok :: test_CVE_2010_1646_bb_escalate (__main__.SudoTest) :: Test CVE-2010-1646 ... ok :: test_CVE_2010_1646_zz_cleanup (__main__.SudoTest) :: Cleanup CVE-2010-1646 tests ... ok :: test_CVE_2010_2956_aa_setup (__main__.SudoTest) :: Setup CVE-2010-2956 tests ... ok :: test_CVE_2010_2956_bb (__main__.SudoTest) :: Test CVE-2010-2956 ... ok :: test_CVE_2010_2956_zz_cleanup (__main__.SudoTest) :: Cleanup CVE-2010-2956 tests ... ok :: test_CVE_2011_0010_aa_setup (__main__.SudoTest) :: Setup CVE-2011-0010 tests ... ok :: test_CVE_2011_0010_bb_escalate (__main__.SudoTest) :: Test CVE-2011-0010 ... ok :: test_CVE_2011_0010_zz_cleanup (__main__.SudoTest) :: Cleanup CVE-2011-0010 tests ... ok :: test_CVE_2014_9680_aa_setup (__main__.SudoTest) :: Setup CVE-2014-9680 tests ... ok :: test_CVE_2014_9680_bb_escalate (__main__.SudoTest) :: Test CVE-2014-9680 ... ok :: test_CVE_2014_9680_zz_cleanup (__main__.SudoTest) :: Cleanup CVE-2014-9680 tests ... ok :: test_CVE_2019_14287_aa_setup (__main__.SudoTest) :: Setup CVE-2019-14287 tests ... ok :: test_CVE_2019_14287_bb (__main__.SudoTest) :: Test CVE-2019-14287, part 1 ... ok :: test_CVE_2019_14287_cc (__main__.SudoTest) :: Test CVE-2019-14287, part 2 ... ok :: test_CVE_2019_14287_zz_cleanup (__main__.SudoTest) :: Cleanup CVE-2019-14287 tests ... ok :: test_runas_aa_setup (__main__.SudoTest) :: Setup runas tests ... ok :: test_runas_bb_confined (__main__.SudoTest) :: Test 'confined' can sudo to outsider and escaper, not root ... ok :: test_runas_cc_da_outsider (__main__.SudoTest) :: Test 'outsider' can sudo to nothing ... ok :: test_runas_dd_escaper (__main__.SudoTest) :: Test 'escaper' can sudo to outsider, not root or confined (CVE-2009-0034) ... ok :: test_runas_ee_used_user (__main__.SudoTest) :: Test -g not allowed when not using :GROUP ... ok :: test_runas_zz_cleanup (__main__.SudoTest) :: Cleanup runas tests ... ok :: test_runasgroup_aa_setup (__main__.SudoTest) :: Setup runas group tests ... ok :: test_runasgroup_bb_confined (__main__.SudoTest) :: Test 'confined' can sudo to group outsider and escaper, not root ... ok :: test_runasgroup_cc_da_outsider (__main__.SudoTest) :: Test 'outsider' can sudo to nothing ... ok :: test_runasgroup_dd_escaper (__main__.SudoTest) :: Test 'escaper' can sudo to group outsider, not root or confined ... ok :: test_runasgroup_ee_user_and_group (__main__.SudoTest) :: Test -u and -g combinations ... ok :: test_runasgroup_zz_cleanup (__main__.SudoTest) :: Cleanup runas group tests ... ok :: test_sudoedit_aa_setup (__main__.SudoTest) :: Setup sudoedit tests ... ok :: test_sudoedit_bb_allowed (__main__.SudoTest) :: Test sudoedit for allowed file ... ok :: test_sudoedit_cc_disallowed (__main__.SudoTest) :: Test sudoedit for not allowed file ... ok :: test_sudoedit_dd_CVE_2010_0426 (__main__.SudoTest) :: Test CVE-2010-0426 ... ok :: test_sudoedit_zz_cleanup (__main__.SudoTest) :: Cleanup sudoedit tests ... ok :: test_aa_setup (__main__.SudoTestUbuntu) :: Setup environment for Ubuntu tests ... ok :: test_commands (__main__.SudoTestUbuntu) :: Test commands via sudo ... ok :: test_env_merge (__main__.SudoTestUbuntu) :: Test PAM environment merging ... ok :: test_groups (__main__.SudoTestUbuntu) :: Test groups ... ok :: test_home (__main__.SudoTestUbuntu) :: Test home ... ok :: test_list (__main__.SudoTestUbuntu) :: Test list ... ok :: test_list_defaults (__main__.SudoTestUbuntu) :: Test list defaults ... Skipping private tests :: (skipped: list defaults option is gone in 1.8.x) ok :: test_path (__main__.SudoTestUbuntu) :: Test PATH (secure_path) ... ok :: test_user (__main__.SudoTestUbuntu) :: Test user ... ok :: test_version_and_help (__main__.SudoTestUbuntu) :: Test version and help ... ok :: test_visudo (__main__.SudoTestUbuntu) :: Test visudo ... ok :: test_zz_cleanup (__main__.SudoTestUbuntu) :: Cleanup Ubuntu tests ... ok :: :: ---------------------------------------------------------------------- :: Ran 49 tests in 21.055s :: :: OK