mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
dash doesn't have $RANDOM
This commit is contained in:
parent
ce828df545
commit
f6ff697d21
1 changed files with 3 additions and 2 deletions
|
@ -8,11 +8,12 @@ async def test_cache(run_str_multi):
|
||||||
conf = r'''
|
conf = r'''
|
||||||
[cache-1]
|
[cache-1]
|
||||||
source = "cmd"
|
source = "cmd"
|
||||||
cmd = "echo $RANDOM"
|
cmd = "bash -c 'echo $RANDOM'"
|
||||||
|
|
||||||
[cache-2]
|
[cache-2]
|
||||||
source = "cmd"
|
source = "cmd"
|
||||||
cmd = "echo $RANDOM"'''
|
cmd = "bash -c 'echo $RANDOM'"
|
||||||
|
'''
|
||||||
|
|
||||||
r = await run_str_multi(conf)
|
r = await run_str_multi(conf)
|
||||||
assert r['cache-1'] == r['cache-2']
|
assert r['cache-1'] == r['cache-2']
|
||||||
|
|
Loading…
Add table
Reference in a new issue