Use more 'tmux-test' functions

This commit is contained in:
Bruno Sutic 2015-02-23 01:19:03 +01:00
parent d9ac38bef9
commit d4ec690610
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C
3 changed files with 3 additions and 14 deletions

View File

@ -1,9 +1,3 @@
install_tmux_resurrect_helper() {
local plugin_path="${HOME}/.tmux/plugins/tmux-resurrect/"
rm -rf "$plugin_path"
git clone --recursive "${CURRENT_DIR}/../" "$plugin_path" >/dev/null 2>&1
}
# we want "fixed" dimensions no matter the size of real display
set_screen_dimensions_helper() {
stty cols 200

View File

@ -16,15 +16,12 @@ setup_before_restore() {
}
restore_tmux_environment_and_save_again() {
set_tmux_conf_helper<<-HERE
run-shell '~/.tmux/plugins/tmux-resurrect/resurrect.tmux'
HERE
set_screen_dimensions_helper
$CURRENT_DIR/helpers/restore_and_save_tmux_test_environment.exp
}
main() {
install_tmux_resurrect_helper
install_tmux_plugin_under_test_helper
setup_before_restore
restore_tmux_environment_and_save_again

View File

@ -6,15 +6,13 @@ source $CURRENT_DIR/helpers/helpers.sh
source $CURRENT_DIR/helpers/resurrect_helpers.sh
create_tmux_test_environment_and_save() {
set_tmux_conf_helper<<-HERE
run-shell '~/.tmux/plugins/tmux-resurrect/resurrect.tmux'
HERE
set_screen_dimensions_helper
$CURRENT_DIR/helpers/create_and_save_tmux_test_environment.exp
}
main() {
install_tmux_resurrect_helper
install_tmux_plugin_under_test_helper
install_tmux_plugin_under_test_helper
mkdir -p /tmp/bar # setup required dirs
create_tmux_test_environment_and_save