Move relative date formatting to separate function
[tig.git] / test / tigrc / save-option-test
blob52678e0978a24435bcc493e56128f5b52d73a3ab
1 #!/bin/sh
3 . libtest.sh
5 saved_tigrc="$HOME/saved-tigrc"
6 check_tigrc="$HOME/check-tigrc"
8 steps "
9 :save-options $saved_tigrc
12 test_tig status
13 cp stderr stderr.1
15 steps "
16 :save-options $check_tigrc
19 TIGRC_USER="$saved_tigrc" test_tig status
20 cp stderr stderr.2
22 cat stderr.* > stderr
24 assert_equals stderr <<EOF
25 EOF
27 assert_equals "saved-tigrc" <<EOF
28 $(cat check-tigrc)
29 EOF