summaryrefslogtreecommitdiff
path: root/scripts/PYTHON_SOFTWARE/test/tests/qrtc.py
diff options
context:
space:
mode:
authorManel Caro <mcaro@iseebcn.com>2019-03-09 21:29:27 +0100
committerManel Caro <mcaro@iseebcn.com>2019-03-09 21:29:27 +0100
commite4366bb1f2dc3a43a1289f6f76967f1005278954 (patch)
tree4f07744ecfb6c6a60e29e35ca17d93b52f8b5d45 /scripts/PYTHON_SOFTWARE/test/tests/qrtc.py
parent9332c933fc05f42882640c9a4e35fab09854af84 (diff)
downloadboard-e4366bb1f2dc3a43a1289f6f76967f1005278954.zip
board-e4366bb1f2dc3a43a1289f6f76967f1005278954.tar.gz
board-e4366bb1f2dc3a43a1289f6f76967f1005278954.tar.bz2
Remove incorrect copy PYTHON_SOFTWARE folder inside scripts directory
Diffstat (limited to 'scripts/PYTHON_SOFTWARE/test/tests/qrtc.py')
-rw-r--r--scripts/PYTHON_SOFTWARE/test/tests/qrtc.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/scripts/PYTHON_SOFTWARE/test/tests/qrtc.py b/scripts/PYTHON_SOFTWARE/test/tests/qrtc.py
deleted file mode 100644
index 1d02f78..0000000
--- a/scripts/PYTHON_SOFTWARE/test/tests/qrtc.py
+++ /dev/null
@@ -1,28 +0,0 @@
-from test.helpers.syscmd import SysCommand
-import unittest
-import time
-
-class Qrtc(unittest.TestCase):
-
- def __init__(self, testname, testfunc, rtc):
- super(Qrtc, self).__init__(testfunc)
- self.__rtc = rtc
- self._testMethodDoc = testname
-
- def execute(self):
- str_cmd = "hwclock -f {}".format(self.__rtc)
- rtc_set = SysCommand("rtc_set", str_cmd)
- if rtc_set.execute() == 0:
- curr_hour = rtc_set.getOutput().decode('ascii').split(" ")
- time1 = int((curr_hour[4].split(":"))[2])
- time.sleep(1)
- if rtc_set.execute() == 0:
- curr_hour = rtc_set.getOutput().decode('ascii').split(" ")
- time2 = int((curr_hour[4].split(":"))[2])
- if time1==time2:
- self.fail("failed: RTC is not running")
- else:
- self.fail("failed: couldn't execute hwclock command 2nd time")
- else:
- self.fail("failed: couldn't execute hwclock command")
-