@@ -361,12 +361,12 @@ def test_reservation(place_acquire, tmpdir):
361361 spawn .expect (pexpect .EOF )
362362 spawn .close ()
363363 assert spawn .exitstatus == 0 , spawn .before .strip ()
364- m = re .search (rb"^export LG_RESERVATION_ID =(\S+)$" , spawn .before .replace (b'\r \n ' , b'\n ' ), re .MULTILINE )
364+ m = re .search (rb"^export LG_RESERVATION =(\S+)$" , spawn .before .replace (b'\r \n ' , b'\n ' ), re .MULTILINE )
365365 assert m is not None , spawn .before .strip ()
366366 reservation_id = m .group (1 )
367367
368368 env = os .environ .copy ()
369- # Use LG_TOKEN in this test to validate backwards compatibility. Other tests use LG_RESERVATION_ID .
369+ # Use LG_TOKEN in this test to validate backwards compatibility. Other tests use LG_RESERVATION .
370370 env ['LG_TOKEN' ] = reservation_id .decode ('ASCII' )
371371
372372 with pexpect .spawn ('python -m labgrid.remote.client reservations' ) as spawn :
@@ -569,14 +569,14 @@ def test_reservation_custom_config(place, exporter, tmpdir):
569569 spawn .expect (pexpect .EOF )
570570 spawn .close ()
571571 assert spawn .exitstatus == 0 , spawn .before .strip ()
572- m = re .search (rb"^export LG_RESERVATION_ID =(\S+)$" , spawn .before .replace (b'\r \n ' , b'\n ' ), re .MULTILINE )
572+ m = re .search (rb"^export LG_RESERVATION =(\S+)$" , spawn .before .replace (b'\r \n ' , b'\n ' ), re .MULTILINE )
573573 s = re .search (rb"^Selected role$" , spawn .before .replace (b'\r \n ' , b'\n ' ), re .MULTILINE )
574574 assert m is not None , spawn .before .strip ()
575575 assert s is None , spawn .before .strip ()
576576 reservation_id = m .group (1 )
577577
578578 env = os .environ .copy ()
579- env ['LG_RESERVATION_ID ' ] = reservation_id .decode ('ASCII' )
579+ env ['LG_RESERVATION ' ] = reservation_id .decode ('ASCII' )
580580
581581 with pexpect .spawn (f'python -m labgrid.remote.client -c { p } -p + lock' , env = env ) as spawn :
582582 spawn .expect ("acquired place test" )
0 commit comments