Skip to content
  • Vitaly Ostrosablin's avatar
    ae48b5d6
    test: add variable delta for poll.c test · ae48b5d6
    Vitaly Ostrosablin authored
    
    
    For ZDTM purposes, poll.c uses delta of 5 seconds, which is fine, since
    tests don't take a very long time to pass. However, in vzt-cpt, we start
    a batch with multitude of tests and starting them all could take over an
    hour. Hence, the test is bound to fail. An easy solution would be to
    introduce an environment variable, which would allow to specify the
    delta - ZDTM_DELTA. If it's unset (which is default behaviour in ZDTM) -
    it would default to 5 seconds. However, if it's set (what we can do from
    vzt-cpt) - then it will use delta which is set by our test.
    
    travis-ci: success for test: add variable delta for poll.c test (rev2)
    Signed-off-by: default avatarVitaly Ostrosablin <vostrosablin@virtuozzo.com>
    Reviewed-by: default avatarCyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: default avatarPavel Emelyanov <xemul@virtuozzo.com>
    ae48b5d6
    test: add variable delta for poll.c test
    Vitaly Ostrosablin authored
    
    
    For ZDTM purposes, poll.c uses delta of 5 seconds, which is fine, since
    tests don't take a very long time to pass. However, in vzt-cpt, we start
    a batch with multitude of tests and starting them all could take over an
    hour. Hence, the test is bound to fail. An easy solution would be to
    introduce an environment variable, which would allow to specify the
    delta - ZDTM_DELTA. If it's unset (which is default behaviour in ZDTM) -
    it would default to 5 seconds. However, if it's set (what we can do from
    vzt-cpt) - then it will use delta which is set by our test.
    
    travis-ci: success for test: add variable delta for poll.c test (rev2)
    Signed-off-by: default avatarVitaly Ostrosablin <vostrosablin@virtuozzo.com>
    Reviewed-by: default avatarCyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: default avatarPavel Emelyanov <xemul@virtuozzo.com>
Loading