1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
proc setup {} { save_env }; # setup() proc teardown {} { assert_env_unmodified }; # teardown() setup assert_complete_any "chsh -s " sync_after_int assert_complete [exec bash -c "compgen -A user"] "chsh " sync_after_int teardown