From e4366bb1f2dc3a43a1289f6f76967f1005278954 Mon Sep 17 00:00:00 2001 From: Manel Caro Date: Sat, 9 Mar 2019 21:29:27 +0100 Subject: Remove incorrect copy PYTHON_SOFTWARE folder inside scripts directory --- scripts/PYTHON_SOFTWARE/test/tests/qeeprom.py | 38 --------------------------- 1 file changed, 38 deletions(-) delete mode 100644 scripts/PYTHON_SOFTWARE/test/tests/qeeprom.py (limited to 'scripts/PYTHON_SOFTWARE/test/tests/qeeprom.py') diff --git a/scripts/PYTHON_SOFTWARE/test/tests/qeeprom.py b/scripts/PYTHON_SOFTWARE/test/tests/qeeprom.py deleted file mode 100644 index f72f78f..0000000 --- a/scripts/PYTHON_SOFTWARE/test/tests/qeeprom.py +++ /dev/null @@ -1,38 +0,0 @@ -from test.helpers.syscmd import SysCommand -import unittest -import uuid - -class Qeeprom(unittest.TestCase): - - def __init__(self, testname, testfunc): - super(Qeeprom, self).__init__(testfunc) - self._testMethodDoc = testname - - def execute(self): - str_cmd = "find /sys/ -iname 'eeprom'" - eeprom_location = SysCommand("eeprom_location", str_cmd) - if eeprom_location.execute() == 0: - self.__raw_out = eeprom_location.getOutput() - if self.__raw_out == "": - self.fail("Unable to get EEPROM location. IS EEPROM CONNECTED?") - return -1 - eeprom=self.__raw_out.decode('ascii') - test_uuid = uuid.uuid4() - str_cmd="echo '{}' > {}".format(str(test_uuid), eeprom) - eeprom_write = SysCommand("eeprom_write", str_cmd) - if eeprom_write.execute() == 0: - self.__raw_out = eeprom_write.getOutput() - if self.__raw_out == "": - self.fail("Unable to write on the EEPROM?") - return -1 - str_cmd = "head -2 {}".format(eeprom) - eeprom_read = SysCommand("eeprom_read", str_cmd) - if eeprom_read.execute() == 0: - self.__raw_out = eeprom_read.getOutput() - if self.__raw_out == "": - self.fail("Unable to read from the EEPROM?") - return -1 - if(str(self.__raw_out).find(str(test_uuid)) == -1): - self.fail("failed: READ/WRITE mismatch") - else: - self.fail("failed: could not complete find eeprom command") -- cgit v1.1