@ -90,8 +90,7 @@ in {
# original config has a keybinding that creates somefile
machine . send_key ( " a l t - c t r l - t " )
machine . sleep ( 1 )
machine . succeed ( " s t a t / t m p / s o m e f i l e " )
machine . wait_for_file ( " / t m p / s o m e f i l e " )
# set up the new config
machine . succeed ( " m k d i r - p ${ user . home } / . x m o n a d " )
@ -103,15 +102,13 @@ in {
# new config has a keybinding that deletes somefile
machine . send_key ( " a l t - c t r l - r " )
machine . sleep ( 1 )
machine . fail ( " s t a t / t m p / s o m e f i l e " )
machine . wait_until_fails ( " s t a t / t m p / s o m e f i l e " , timeout = 30 )
# restart with the old config, and confirm the old keybinding is back
machine . succeed ( " r m / t m p / o l d X M o n a d " )
machine . send_key ( " a l t - q " )
machine . wait_for_file ( " / t m p / o l d X M o n a d " )
machine . send_key ( " a l t - c t r l - t " )
machine . sleep ( 1 )
machine . succeed ( " s t a t / t m p / s o m e f i l e " )
machine . wait_for_file ( " / t m p / s o m e f i l e " )
'' ;
} )