mirror of
https://github.com/tstack/lnav.git
synced 2024-07-14 16:20:24 +03:00
[tests] fix test that uses TMPDIR
This commit is contained in:
parent
8187035b3d
commit
14d40cafe4
@ -258,6 +258,8 @@ EXPECTED_FILES = \
|
||||
$(srcdir)/%reldir%/test_config.sh_a0907769aba112d628e7ebe39c4ec252e5e0bc69.out \
|
||||
$(srcdir)/%reldir%/test_config.sh_b08f7523659d1c12f0e59920cd40d17d4a83b72f.err \
|
||||
$(srcdir)/%reldir%/test_config.sh_b08f7523659d1c12f0e59920cd40d17d4a83b72f.out \
|
||||
$(srcdir)/%reldir%/test_config.sh_d3df763c453c81ed3126337c643f9d9a1978119e.err \
|
||||
$(srcdir)/%reldir%/test_config.sh_d3df763c453c81ed3126337c643f9d9a1978119e.out \
|
||||
$(srcdir)/%reldir%/test_config.sh_d622658dc98327b1b2fd346802d24bc633e34ac7.err \
|
||||
$(srcdir)/%reldir%/test_config.sh_d622658dc98327b1b2fd346802d24bc633e34ac7.out \
|
||||
$(srcdir)/%reldir%/test_config.sh_d708b6fd32d83ce0ee00ca5383388308ba5a06e1.err \
|
||||
|
@ -0,0 +1,6 @@
|
||||
[1m[31m✘ error[0m: expecting an integer, found: abc
|
||||
[36m --> [0m[1mcommand-option[0m:1
|
||||
[36m | [0m[37m[40m:[0m[1m[36m[40mconfig[0m[37m[40m /tuning/archive-manager/min-free-space abc[0m
|
||||
[36m =[0m [36mhelp[0m: [4m:[0m[1m[4mconfig[0m[4m [0m[4moption[0m[4m [[0m[4mvalue[0m[4m][0m
|
||||
══════════════════════════════════════════════════════════════════════
|
||||
Read or write a configuration option
|
@ -21,7 +21,9 @@ run_cap_test ${lnav_test} -n \
|
||||
${test_dir}/logfile_access_log.0
|
||||
|
||||
# invalid min-free-space allowed?
|
||||
run_cap_test env TMPDIR=tmp ${lnav_test} -n \
|
||||
rm -rf config-tmp
|
||||
mkdir config-tmp
|
||||
run_cap_test env TMPDIR=config-tmp ${lnav_test} -n \
|
||||
-c ':config /tuning/archive-manager/min-free-space abc' \
|
||||
${srcdir}/logfile_syslog.0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user