Commit 19485be7 authored by Pavel Vainerman's avatar Pavel Vainerman

Добавил python/examples. Откорректировал ошибки сборки.

parent 55667c31
......@@ -7,7 +7,7 @@
Name: libuniset
Version: 1.6
Release: alt0.3
Release: alt0.5
Summary: UniSet - library for building distributed industrial control systems
......@@ -316,14 +316,20 @@ mv -f %buildroot%python_sitelibdir_noarch/%oname/%oname.py %buildroot%python_sit
%exclude %_pkgconfigdir/libUniSet.pc
%changelog
* Tue Mar 05 2013 Pavel Vainerman <pv@altlinux.ru> 1.6-alt0.5
- python: test build
* Tue Mar 05 2013 Pavel Vainerman <pv@altlinux.ru> 1.6-alt0.4
- python: test build
* Tue Mar 05 2013 Pavel Vainerman <pv@altlinux.ru> 1.6-alt0.3
- new build
- python: test build
* Tue Mar 05 2013 Pavel Vainerman <pv@altlinux.ru> 1.6-alt0.2
- test build (with python)
- python: test build
* Mon Mar 04 2013 Pavel Vainerman <pv@altlinux.ru> 1.6-alt0.1
- new build
- add python interface
* Mon Jan 14 2013 Pavel Vainerman <pv@altlinux.ru> 1.5-alt10
- add error code for MTR (eterbug #8659)
......
......@@ -4,16 +4,6 @@
from pyUConnector import *
import time
# различные глобальные вспомогательные функции
t_NONE=""
t_FAILED="FAILED"
t_PASSED="PASSED"
t_IGNORE="IGNORE"
t_BREAK="BREAK"
t_PAUSE="PAUSE"
t_WARNING = "WARNING"
t_UNKNOWN="UNKNOWN"
def is_id( str_id ):
if str_id.__class__.__name__ == "int":
return True
......@@ -229,17 +219,3 @@ def fcalibrate( raw, rawMin, rawMax, calMin, calMax ):
return 0; # деление на 0!!!
return 1.0 * (raw - rawMin) * (calMax - calMin) / ( rawMax - rawMin ) + calMin;
class TestSuiteException(Exception):
def __init__(self,e="",test_time=-1):
self.err = e
self.ftime = test_time
if test_time == -1:
self.ftime = time.time()
def getError(self):
return self.err
def getFinishTime(self):
return self.ftime
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment