You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hawq.apache.org by "Kuien Liu (JIRA)" <ji...@apache.org> on 2017/11/30 09:25:01 UTC

[jira] [Updated] (HAWQ-1558) feature-test result is not environment independent

     [ https://issues.apache.org/jira/browse/HAWQ-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kuien Liu updated HAWQ-1558:
----------------------------
    Description: 
When I run ./feature-test with seperate test, for example,

1. {{ ./feature-test --gtest_filter=TestType.*}}

Some test sets, e.g., 'date.sql', 'int8.sql', 'time.sql' etc will fail. BUT if I run it with 

2. {{./parallel-run-feature-test.sh 4 ./feature-test --gtest_filter=TestType.*}}
3. Or, {{PGTZ="PST8PDT" PGDATESTYLE="Postgres, MDY" ./feature-test --gtest_filter=TestType.*}}

At least the test 'date.sql' will pass! That means, feature-test result is not environment independent, some environment variables are missed to be set for some reason. 

I think we can borrow some idea from pg_regress.c to 'putenv()' those variables (LC_*, PG*), what do you think?

  was:
When I run ./feature-test with seperate test, for example,

1.  ./feature-test --gtest_filter=TestType.*

Some test sets, e.g., data.sql, will fail. BUT if I run it with 

2. ./parallel-run-feature-test.sh 4 ./feature-test --gtest_filter=TestType.*
3. Or, PGTZ="PST8PDT" PGDATESTYLE="Postgres, MDY" ./feature-test --gtest_filter=TestType.*

Test of data.sql will successes! That means, feature-test result is not environment independent, some environment variables are missed to be set for some reason. 

I think we can borrow some idea from pg_regress.c to 'putenv()' those variables (LC_*, PG*), what do you think?


> feature-test result is not environment independent
> --------------------------------------------------
>
>                 Key: HAWQ-1558
>                 URL: https://issues.apache.org/jira/browse/HAWQ-1558
>             Project: Apache HAWQ
>          Issue Type: Bug
>          Components: Tests
>            Reporter: Kuien Liu
>            Assignee: Jiali Yao
>
> When I run ./feature-test with seperate test, for example,
> 1. {{ ./feature-test --gtest_filter=TestType.*}}
> Some test sets, e.g., 'date.sql', 'int8.sql', 'time.sql' etc will fail. BUT if I run it with 
> 2. {{./parallel-run-feature-test.sh 4 ./feature-test --gtest_filter=TestType.*}}
> 3. Or, {{PGTZ="PST8PDT" PGDATESTYLE="Postgres, MDY" ./feature-test --gtest_filter=TestType.*}}
> At least the test 'date.sql' will pass! That means, feature-test result is not environment independent, some environment variables are missed to be set for some reason. 
> I think we can borrow some idea from pg_regress.c to 'putenv()' those variables (LC_*, PG*), what do you think?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)