Did I find the right examples for you? yes no

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/logrotate.py   oe-core(Download)
    def test_2_logrotate(self):
        (status, output) = self.target.run('logrotate -f /etc/logrotate.conf')
        self.assertEqual(status, 0, msg = "logrotate service could not be reloaded. Status and output: %s and %s" % (status, output))
        output = self.target.run('ls -la /home/root/logrotate_dir/ | wc -l')[1]
        self.assertTrue(int(output)>=3, msg = "new logfile could not be created. List of files within log directory: %s" %(self.target.run('ls -la /home/root/logrotate_dir')[1]))

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/vnc.py   oe-core(Download)
    def test_vnc(self):
        (status, output) = self.target.run('x11vnc -display :0 -bg -o x11vnc.log')
        self.assertEqual(status, 0, msg="x11vnc server failed to start: %s" % output)
        port = re.search('PORT=[0-9]*', output)
        self.assertTrue(port, msg="Listening port not specified in command output: %s" %output)

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/date.py   oe-core(Download)
        (status, output) = self.target.run("date -R")
        p = re.match('Tue, 09 Aug 2016 10:00:.. \+0000', output)
        self.assertTrue(p, msg="The date was not set correctly, output: %s" % output)
        (status, output) = self.target.run('date -s "%s"' % oldDate)

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/multilib.py   oe-core(Download)
    def test_file_connman(self):
        self.assertTrue(oeRuntimeTest.hasPackage('connman-gnome'), msg="This test assumes connman-gnome is installed")
        (status, output) = self.target.run("readelf -h /usr/bin/connman-applet | sed -n '3p' | awk '{print $2}'")
        self.assertEqual(output, "ELF32", msg="connman-applet isn't an ELF32 binary. readelf says: %s" % self.target.run("readelf -h /usr/bin/connman-applet")[1])

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/x32lib.py   oe-core(Download)
    def test_x32_file(self):
        status1 = self.target.run("readelf -h /bin/ls | grep Class | grep ELF32")[0]
        status2 = self.target.run("readelf -h /bin/ls | grep Machine | grep X86-64")[0]
        self.assertTrue(status1 == 0 and status2 == 0, msg="/bin/ls isn't an X86-64 ELF32 binary. readelf says: %s" % self.target.run("readelf -h /bin/ls")[1])

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/df.py   oe-core(Download)
    def test_df(self):
        (status,output) = self.target.run("df / | sed -n '2p' | awk '{print $4}'")
        self.assertTrue(int(output)>5120, msg="Not enough space on image. Current size is %s" % output)