Re: using variables in reg-tests

2020-02-28 Thread William Lallemand
Hi Ilya,

On Fri, Feb 28, 2020 at 10:18:10AM +0100, Christopher Faulet wrote:
> Le 28/02/2020 à 09:32, Илья Шипицин a écrit :
> > reg-tests keep logs in ${TMPDIR}
> > 
> > in travis-ci we output logs on failure
> > 
> > after_failure:
> >    - |
> >      for folder in ${TMPDIR}/*regtest*/vtc.*; do
> >        cat $folder/INFO
> >        cat $folder/LOG
> >      done
> > 
> > 
> > 
> > is it ok not to clean ${TMPDIR} between two runs ? (as far as I understand, 
> > each 
> > test run generates unique id, so it should be ok)
> > 
> > 
> 
> Yes, it is safe to keep temp directories between 2 runs.
> 
> 

Not sure what you are trying to do, but keep in mind that the HTTP
legacy support was removed in 2.1, so you can't use 
"no option http-use-htx" anymore.

-- 
William Lallemand



Re: using variables in reg-tests

2020-02-28 Thread Christopher Faulet

Le 28/02/2020 à 09:32, Илья Шипицин a écrit :

reg-tests keep logs in ${TMPDIR}

in travis-ci we output logs on failure

after_failure:
   - |
     for folder in ${TMPDIR}/*regtest*/vtc.*; do
       cat $folder/INFO
       cat $folder/LOG
     done



is it ok not to clean ${TMPDIR} between two runs ? (as far as I understand, each 
test run generates unique id, so it should be ok)





Yes, it is safe to keep temp directories between 2 runs.


--
Christopher Faulet



Re: using variables in reg-tests

2020-02-28 Thread Илья Шипицин
reg-tests keep logs in ${TMPDIR}

in travis-ci we output logs on failure

after_failure:
  - |
for folder in ${TMPDIR}/*regtest*/vtc.*; do
  cat $folder/INFO
  cat $folder/LOG
done



is it ok not to clean ${TMPDIR} between two runs ? (as far as I understand,
each test run generates unique id, so it should be ok)




пт, 28 февр. 2020 г. в 13:14, Christopher Faulet :

> Le 28/02/2020 à 08:20, Илья Шипицин a écrit :
> > Hello,
> >
> > ${no-htx} option http-use-htx
> >
> > how can setup that variable per test run? I want to run reg-tests with
> and
> > without htx
> >
> > cheers,
> > Ilya Shipitcin
>
> Hi Ilya,
>
> You may pass or not the option '--no-htx' when you run
> "scripts/run-regtests.sh"
> or the "reg-tests" Makefile target:
>
>scripts/run-regtests.sh # with HTX
>scripts/run-regtests.sh --no-htx # without HTX
>
> or
>
>make reg-tests # with HTX
>make reg-test -- --no-htx # without HTX
>
>
> --
> Christopher Faulet
>