mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2025-09-10 13:07:40 +00:00
Resurrect restore test and updates
This commit is contained in:
@ -9,22 +9,16 @@ create_tmux_test_environment_and_save() {
|
||||
set_tmux_conf_helper<<-HERE
|
||||
run-shell '~/.tmux/plugins/tmux-resurrect/resurrect.tmux'
|
||||
HERE
|
||||
|
||||
set_screen_dimensions
|
||||
set_screen_dimensions_helper
|
||||
$CURRENT_DIR/helpers/create_and_save_tmux_test_environment.exp
|
||||
}
|
||||
|
||||
last_save_file_incorrect() {
|
||||
diff tests/fixtures/save_file.txt "${HOME}/.tmux/resurrect/last"
|
||||
[ $? -ne 0 ]
|
||||
}
|
||||
|
||||
main() {
|
||||
install_tmux_resurrect_helper
|
||||
create_tmux_test_environment_and_save
|
||||
if last_save_file_incorrect; then
|
||||
fail_helper "Saved file not correct"
|
||||
exit_helper
|
||||
|
||||
if last_save_file_differs_helper "tests/fixtures/save_file.txt"; then
|
||||
fail_helper "Saved file not correct (initial save)"
|
||||
fi
|
||||
exit_helper
|
||||
}
|
||||
|
Reference in New Issue
Block a user