From a076e25f5966331a5b75a1d870d85691d7574fc5 Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Fri, 12 May 2017 17:43:52 +0200 Subject: [PATCH] Closedown --- script/tests/tests.properties | 2 +- .../tests/PS Tests/test without ioc/test without ioc.py | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/script/tests/tests.properties b/script/tests/tests.properties index 1b467b9..a7b5fe4 100644 --- a/script/tests/tests.properties +++ b/script/tests/tests.properties @@ -1,5 +1,5 @@ #TestingList for pshell: configuration properties -#Fri May 12 16:32:59 CEST 2017 +#Fri May 12 17:36:14 CEST 2017 customPanel= showEnabledTestsOnly=true listFilter=LabTests diff --git a/script/tests/tests/PS Tests/test without ioc/test without ioc.py b/script/tests/tests/PS Tests/test without ioc/test without ioc.py index 34517c5..412d8bc 100644 --- a/script/tests/tests/PS Tests/test without ioc/test without ioc.py +++ b/script/tests/tests/PS Tests/test without ioc/test without ioc.py @@ -1,6 +1,13 @@ #Test name: test without ioc #test that does not use any connection to IOC. It is useful to test pure pshell graphical features. + + +is_panel = get_exec_pars().source != CommandSource.ui +if not is_panel: + # set up params for testing + pass + ###### Init - DO NOT MODIFY THE CODE BELOW ###### global sys, inspect, os, traceback import sys, inspect, os, traceback @@ -74,7 +81,7 @@ def startTest(testName, DEVICE, params): #initialise plot tab with 2 plots scan = ManualScan(['sample'], ['Motor Status (MSTA)', 'Motor Position (VAL)'] ) #set plot name(tab title) - scan.setPlotName(plotName + " Manual Scan") + scan.setPlotTitle(plotName + " Manual Scan") #start plots. See further below how to add points to the plots scan.start()