summaryrefslogtreecommitdiffstats
path: root/xml
diff options
context:
space:
mode:
Diffstat (limited to 'xml')
-rw-r--r--xml/scripts/test_script.py4
-rw-r--r--xml/scripts/test_script2.py4
-rw-r--r--xml/test/test_prop_mt.py6
3 files changed, 11 insertions, 3 deletions
diff --git a/xml/scripts/test_script.py b/xml/scripts/test_script.py
new file mode 100644
index 0000000..16e4adb
--- /dev/null
+++ b/xml/scripts/test_script.py
@@ -0,0 +1,4 @@
+description='this is a test script'
+
+def run(ctx, inpt):
+ return ctx.get_registers_list();
diff --git a/xml/scripts/test_script2.py b/xml/scripts/test_script2.py
new file mode 100644
index 0000000..16e4adb
--- /dev/null
+++ b/xml/scripts/test_script2.py
@@ -0,0 +1,4 @@
+description='this is a test script'
+
+def run(ctx, inpt):
+ return ctx.get_registers_list();
diff --git a/xml/test/test_prop_mt.py b/xml/test/test_prop_mt.py
index f8c63d0..3714597 100644
--- a/xml/test/test_prop_mt.py
+++ b/xml/test/test_prop_mt.py
@@ -4,15 +4,15 @@ lock = threading.Lock()
def read_from_register(ctx, value):
with lock:
- ctx.lock('lock5')
+ ctx.lock('lock12')
cur = read_from_register.counter
read_from_register.counter += 1
- for i in range (0, 5):
+ for i in range (0, 60):
time.sleep(0.1)
print cur
out = ctx.get_property('/test/prop3') / 2
- ctx.unlock('lock5')
+ ctx.unlock('lock12')
return out