zsh-workers
 help / color / mirror / code / Atom feed
* Weird test environment behavior
@ 2017-05-25  4:52 Sebastian Gniazdowski
  2017-05-25  5:24 ` Sebastian Gniazdowski
  2017-05-25 18:01 ` Bart Schaefer
  0 siblings, 2 replies; 3+ messages in thread
From: Sebastian Gniazdowski @ 2017-05-25  4:52 UTC (permalink / raw)
  To: zsh-workers

Hello,
$zredis_tied holds parameters tied to redis database. I have a test:

 echo First $zredis_tied ${#zredis_tied}
 zrtie -d db/redis -f $db1 dbase
 echo $zredis_tied ${#zredis_tied}
 ...

And it outputs:

-First 0
-dbase 1
+First dbase 1
+dbase dbase 2

So looks like $zredis_tied is initially set. This is really weird, I guess make TESTNUM=... starts separate Zsh instance for each test. So why $redis_tied isn't empty?

--
Sebastian Gniazdowski
psprint /at/ zdharma.org


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Weird test environment behavior
  2017-05-25  4:52 Weird test environment behavior Sebastian Gniazdowski
@ 2017-05-25  5:24 ` Sebastian Gniazdowski
  2017-05-25 18:01 ` Bart Schaefer
  1 sibling, 0 replies; 3+ messages in thread
From: Sebastian Gniazdowski @ 2017-05-25  5:24 UTC (permalink / raw)
  To: zsh-workers

On 25 maja 2017 at 06:52:34, Sebastian Gniazdowski (psprint@zdharma.org) wrote:
> Hello,
> $zredis_tied holds parameters tied to redis database. I have a test:
> 
> echo First $zredis_tied ${#zredis_tied}
> zrtie -d db/redis -f $db1 dbase
> echo $zredis_tied ${#zredis_tied}
> ...

PS. When I move the test to be 1st in .ztst file, then things work as expected.

--
Sebastian Gniazdowski
psprint /at/ zdharma.org


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Weird test environment behavior
  2017-05-25  4:52 Weird test environment behavior Sebastian Gniazdowski
  2017-05-25  5:24 ` Sebastian Gniazdowski
@ 2017-05-25 18:01 ` Bart Schaefer
  1 sibling, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2017-05-25 18:01 UTC (permalink / raw)
  To: zsh-workers

Try running your test with ZTST_verbose=2, that may provide clues.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-25 18:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-25  4:52 Weird test environment behavior Sebastian Gniazdowski
2017-05-25  5:24 ` Sebastian Gniazdowski
2017-05-25 18:01 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).