@@ -30,13 +30,13 @@ def reset_autosave_setup_teardown():
3030 autosave ._AutosaveContext ._instance = default_instance
3131
3232
33- def create_many_threads (tmp_path ):
33+ def test_create_many_threads (tmp_path ):
3434 autosave .configure (tmp_path , DEVICE_NAME )
3535 in_cm_event = threading .Event ()
3636
3737 def create_pv_in_thread (name ):
3838 in_cm_event .wait ()
39- builder .aOut (name , autosave = False )
39+ builder .aOut (name , autosave = False , DRVL = 1 , DRVH = 2 , EGU = "A" , PREC = 1 , EGUF = 2 , EGUL = 5 , HOPR = 10 , LOPR = 20 , DESC = "ABC" , HIHI = 1 , HIGH = 2 , LOW = 3 , LOLO = 4 , ADEL = 1 , MDEL = 2 , )
4040
4141 threads : List [threading .Thread ] = []
4242 for i in range (1 ,50 ):
@@ -46,10 +46,10 @@ def create_pv_in_thread(name):
4646 [x .start () for x in threads ]
4747 with autosave .Autosave (["VAL" , "EGU" ]):
4848 in_cm_event .set ()
49- builder .aOut ("PV-FROM-CM" )
49+ builder .aOut ("PV-FROM-CM" , autosave = False , DRVL = 1 , DRVH = 2 , EGU = "A" , PREC = 1 , EGUF = 2 , EGUL = 5 , HOPR = 10 , LOPR = 20 , DESC = "ABC" , HIHI = 1 , HIGH = 2 , LOW = 3 , LOLO = 4 , ADEL = 1 , MDEL = 2 , )
5050 [x .join () for x in threads ]
5151
52- def original_test_1 (tmp_path ):
52+ def test_original_test_1 (tmp_path ):
5353 autosave .configure (tmp_path , DEVICE_NAME )
5454 in_cm_event = threading .Event ()
5555
@@ -63,7 +63,7 @@ def create_pv_in_thread(name):
6363 pv_thread_before_cm .start ()
6464 with autosave .Autosave (["VAL" , "EGU" ]):
6565 in_cm_event .set ()
66- builder .aOut ("PV-FROM-CM" )
66+ builder .aOut ("PV-FROM-CM" , autosave = False , DRVL = 1 , DRVH = 2 , EGU = "A" , PREC = 1 , EGUF = 2 , EGUL = 5 , HOPR = 10 , LOPR = 20 , DESC = "ABC" , HIHI = 1 , HIGH = 2 , LOW = 3 , LOLO = 4 , ADEL = 1 , MDEL = 2 , )
6767 pv_thread_in_cm .start ()
6868 pv_thread_in_cm .join ()
6969 pv_thread_before_cm .join ()
@@ -73,7 +73,7 @@ def create_pv_in_thread(name):
7373 assert device_core .LookupRecord ("PV-FROM-THREAD-BEFORE" )
7474 assert device_core .LookupRecord ("PV-FROM-THREAD-DURING" )
7575
76- def original_test_2 (tmp_path ):
76+ def test_original_test_2 (tmp_path ):
7777 autosave .configure (tmp_path , DEVICE_NAME )
7878 in_cm_event = threading .Event ()
7979
@@ -87,7 +87,7 @@ def create_pv_in_thread(name):
8787 pv_thread_before_cm .start ()
8888 with autosave .Autosave (["VAL" , "EGU" ]):
8989 in_cm_event .set ()
90- builder .aOut ("PV-FROM-CM" )
90+ builder .aOut ("PV-FROM-CM" , autosave = False , DRVL = 1 , DRVH = 2 , EGU = "A" , PREC = 1 , EGUF = 2 , EGUL = 5 , HOPR = 10 , LOPR = 20 , DESC = "ABC" , HIHI = 1 , HIGH = 2 , LOW = 3 , LOLO = 4 , ADEL = 1 , MDEL = 2 , )
9191 pv_thread_in_cm .start ()
9292 pv_thread_in_cm .join ()
9393 pv_thread_before_cm .join ()
@@ -97,7 +97,7 @@ def create_pv_in_thread(name):
9797 assert device_core .LookupRecord ("PV-FROM-THREAD-BEFORE" )
9898 assert device_core .LookupRecord ("PV-FROM-THREAD-DURING" )
9999
100- def original_test_3 (tmp_path ):
100+ def test_original_test_3 (tmp_path ):
101101 autosave .configure (tmp_path , DEVICE_NAME )
102102 in_cm_event = threading .Event ()
103103
@@ -111,7 +111,7 @@ def create_pv_in_thread(name):
111111 pv_thread_before_cm .start ()
112112 with autosave .Autosave (["VAL" , "EGU" ]):
113113 in_cm_event .set ()
114- builder .aOut ("PV-FROM-CM" )
114+ builder .aOut ("PV-FROM-CM" , autosave = False , DRVL = 1 , DRVH = 2 , EGU = "A" , PREC = 1 , EGUF = 2 , EGUL = 5 , HOPR = 10 , LOPR = 20 , DESC = "ABC" , HIHI = 1 , HIGH = 2 , LOW = 3 , LOLO = 4 , ADEL = 1 , MDEL = 2 , )
115115 pv_thread_in_cm .start ()
116116 pv_thread_in_cm .join ()
117117 pv_thread_before_cm .join ()
@@ -121,7 +121,7 @@ def create_pv_in_thread(name):
121121 assert device_core .LookupRecord ("PV-FROM-THREAD-BEFORE" )
122122 assert device_core .LookupRecord ("PV-FROM-THREAD-DURING" )
123123
124- def original_test_4 (tmp_path ):
124+ def test_original_test_4 (tmp_path ):
125125 autosave .configure (tmp_path , DEVICE_NAME )
126126 in_cm_event = threading .Event ()
127127
@@ -135,7 +135,7 @@ def create_pv_in_thread(name):
135135 pv_thread_before_cm .start ()
136136 with autosave .Autosave (["VAL" , "EGU" ]):
137137 in_cm_event .set ()
138- builder .aOut ("PV-FROM-CM" )
138+ builder .aOut ("PV-FROM-CM" , autosave = False , DRVL = 1 , DRVH = 2 , EGU = "A" , PREC = 1 , EGUF = 2 , EGUL = 5 , HOPR = 10 , LOPR = 20 , DESC = "ABC" , HIHI = 1 , HIGH = 2 , LOW = 3 , LOLO = 4 , ADEL = 1 , MDEL = 2 , )
139139 pv_thread_in_cm .start ()
140140 pv_thread_in_cm .join ()
141141 pv_thread_before_cm .join ()
@@ -145,7 +145,7 @@ def create_pv_in_thread(name):
145145 assert device_core .LookupRecord ("PV-FROM-THREAD-BEFORE" )
146146 assert device_core .LookupRecord ("PV-FROM-THREAD-DURING" )
147147
148- def original_test_5 (tmp_path ):
148+ def test_original_test_5 (tmp_path ):
149149 autosave .configure (tmp_path , DEVICE_NAME )
150150 in_cm_event = threading .Event ()
151151
@@ -159,7 +159,7 @@ def create_pv_in_thread(name):
159159 pv_thread_before_cm .start ()
160160 with autosave .Autosave (["VAL" , "EGU" ]):
161161 in_cm_event .set ()
162- builder .aOut ("PV-FROM-CM" )
162+ builder .aOut ("PV-FROM-CM" , autosave = False , DRVL = 1 , DRVH = 2 , EGU = "A" , PREC = 1 , EGUF = 2 , EGUL = 5 , HOPR = 10 , LOPR = 20 , DESC = "ABC" , HIHI = 1 , HIGH = 2 , LOW = 3 , LOLO = 4 , ADEL = 1 , MDEL = 2 , )
163163 pv_thread_in_cm .start ()
164164 pv_thread_in_cm .join ()
165165 pv_thread_before_cm .join ()
@@ -169,7 +169,7 @@ def create_pv_in_thread(name):
169169 assert device_core .LookupRecord ("PV-FROM-THREAD-BEFORE" )
170170 assert device_core .LookupRecord ("PV-FROM-THREAD-DURING" )
171171
172- def original_test_6 (tmp_path ):
172+ def test_original_test_6 (tmp_path ):
173173 autosave .configure (tmp_path , DEVICE_NAME )
174174 in_cm_event = threading .Event ()
175175
@@ -183,7 +183,7 @@ def create_pv_in_thread(name):
183183 pv_thread_before_cm .start ()
184184 with autosave .Autosave (["VAL" , "EGU" ]):
185185 in_cm_event .set ()
186- builder .aOut ("PV-FROM-CM" )
186+ builder .aOut ("PV-FROM-CM" , autosave = False , DRVL = 1 , DRVH = 2 , EGU = "A" , PREC = 1 , EGUF = 2 , EGUL = 5 , HOPR = 10 , LOPR = 20 , DESC = "ABC" , HIHI = 1 , HIGH = 2 , LOW = 3 , LOLO = 4 , ADEL = 1 , MDEL = 2 , )
187187 pv_thread_in_cm .start ()
188188 pv_thread_in_cm .join ()
189189 pv_thread_before_cm .join ()
@@ -193,7 +193,7 @@ def create_pv_in_thread(name):
193193 assert device_core .LookupRecord ("PV-FROM-THREAD-BEFORE" )
194194 assert device_core .LookupRecord ("PV-FROM-THREAD-DURING" )
195195
196- def original_test_7 (tmp_path ):
196+ def test_original_test_7 (tmp_path ):
197197 autosave .configure (tmp_path , DEVICE_NAME )
198198 in_cm_event = threading .Event ()
199199
@@ -207,7 +207,7 @@ def create_pv_in_thread(name):
207207 pv_thread_before_cm .start ()
208208 with autosave .Autosave (["VAL" , "EGU" ]):
209209 in_cm_event .set ()
210- builder .aOut ("PV-FROM-CM" )
210+ builder .aOut ("PV-FROM-CM" , autosave = False , DRVL = 1 , DRVH = 2 , EGU = "A" , PREC = 1 , EGUF = 2 , EGUL = 5 , HOPR = 10 , LOPR = 20 , DESC = "ABC" , HIHI = 1 , HIGH = 2 , LOW = 3 , LOLO = 4 , ADEL = 1 , MDEL = 2 , )
211211 pv_thread_in_cm .start ()
212212 pv_thread_in_cm .join ()
213213 pv_thread_before_cm .join ()
@@ -217,7 +217,7 @@ def create_pv_in_thread(name):
217217 assert device_core .LookupRecord ("PV-FROM-THREAD-BEFORE" )
218218 assert device_core .LookupRecord ("PV-FROM-THREAD-DURING" )
219219
220- def original_test_8 (tmp_path ):
220+ def test_original_test_8 (tmp_path ):
221221 autosave .configure (tmp_path , DEVICE_NAME )
222222 in_cm_event = threading .Event ()
223223
@@ -231,7 +231,7 @@ def create_pv_in_thread(name):
231231 pv_thread_before_cm .start ()
232232 with autosave .Autosave (["VAL" , "EGU" ]):
233233 in_cm_event .set ()
234- builder .aOut ("PV-FROM-CM" )
234+ builder .aOut ("PV-FROM-CM" , autosave = False , DRVL = 1 , DRVH = 2 , EGU = "A" , PREC = 1 , EGUF = 2 , EGUL = 5 , HOPR = 10 , LOPR = 20 , DESC = "ABC" , HIHI = 1 , HIGH = 2 , LOW = 3 , LOLO = 4 , ADEL = 1 , MDEL = 2 , )
235235 pv_thread_in_cm .start ()
236236 pv_thread_in_cm .join ()
237237 pv_thread_before_cm .join ()
@@ -241,7 +241,7 @@ def create_pv_in_thread(name):
241241 assert device_core .LookupRecord ("PV-FROM-THREAD-BEFORE" )
242242 assert device_core .LookupRecord ("PV-FROM-THREAD-DURING" )
243243
244- def original_test_9 (tmp_path ):
244+ def test_original_test_9 (tmp_path ):
245245 autosave .configure (tmp_path , DEVICE_NAME )
246246 in_cm_event = threading .Event ()
247247
@@ -255,7 +255,7 @@ def create_pv_in_thread(name):
255255 pv_thread_before_cm .start ()
256256 with autosave .Autosave (["VAL" , "EGU" ]):
257257 in_cm_event .set ()
258- builder .aOut ("PV-FROM-CM" )
258+ builder .aOut ("PV-FROM-CM" , autosave = False , DRVL = 1 , DRVH = 2 , EGU = "A" , PREC = 1 , EGUF = 2 , EGUL = 5 , HOPR = 10 , LOPR = 20 , DESC = "ABC" , HIHI = 1 , HIGH = 2 , LOW = 3 , LOLO = 4 , ADEL = 1 , MDEL = 2 , )
259259 pv_thread_in_cm .start ()
260260 pv_thread_in_cm .join ()
261261 pv_thread_before_cm .join ()
0 commit comments