addbe518d6373d761309fc11b635ca2392570f2d,benchmarking/platforms/android/adb.py,ADB,reboot,#ADB#,41

Before Change


        return self.run("logcat", *args)

    def reboot(self):
        return self.run("reboot")

    def deleteFile(self, file):
        return self.shell(["rm", "-f", file])

After Change


        self.run("reboot")
        getLogger().info("Rebooting: {}".format(self.device))
        t = 0
        ls = None
        while ls is None and t < 6:
            t = t + 1
            time.sleep(20)
            ls = self.shell(["ls", self.tempdir])
        // Need to wait a bit more after the device is rebooted
        time.sleep(300)
        if ls is None:
            getLogger().error("Cannot reach device {} after reboot.".
                              format(self.device))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: facebook/FAI-PEP
Commit Name: addbe518d6373d761309fc11b635ca2392570f2d
Time: 2019-02-26
Author: huaminli@fb.com
File Name: benchmarking/platforms/android/adb.py
Class Name: ADB
Method Name: reboot


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: b53e9baee8a3ff165048424b9be8fd020a78270e
Time: 2020-09-03
Author: tohaowu@google.com
File Name: perfkitbenchmarker/providers/gcp/gce_virtual_machine.py
Class Name: GceVirtualMachine
Method Name: UpdateInterruptibleVmStatus


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 7926858da02bd4db873a9e8ca727beb838faad9d
Time: 2020-02-25
Author: 11652964@qq.com
File Name: QUANTAXIS/QAFetch/QAbinance.py
Class Name:
Method Name: QA_fetch_binance_symbols


Project Name: Ambrosys/glyph
Commit Name: ffa0db4fdca9cef31a72b35a1f7eef78733f5b0c
Time: 2017-02-24
Author: mquade@uni-potsdam.de
File Name: glyph/cli/glyph_remote.py
Class Name: RemoteAssessmentRunner
Method Name: evaluate_single