scripts/run-test.sh: Piglit overwrite option.
PATCH 1/1 scripts/run-test.sh: Piglit overwrite option.
The following piglit commit adds one option to overwrite files:
commit ec317ece07afdf9c8a26de04bdec8a94e5d7b2db
Author: Dylan Baker <[email protected]> Date: Mon Feb 1 15:08:23 2016 -0800
framework/programs/run.py: Add option for overwriting files
So our run-script.sh test that creates the directory before executing the tests were failing with:
"Fatal Error: Cannot overwrite existing folder w/o the -o /--overwrite option being sent"
I believe it took a while to notice that because many of us never upgrade the piglit. But also the risk with this patch is to have an environment with the old piglit so the result will be:
piglit: error: unrecognized arguments: --overwrite
So, let's start the discussion and also provide the patch that allows some people with new version to get it running.
--- scripts/run-tests.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
scripts/run-tests.sh +1 -2
@@ -124,8 +124,7 @@ fi if [ "x$RESUME" != "x" ]; then sudo IGT_TEST_ROOT="$IGT_TEST_ROOT" "$PIGLIT" resume "$RESULTS" $NORETRY else - mkdir -p "$RESULTS" - sudo IGT_TEST_ROOT="$IGT_TEST_ROOT" "$PIGLIT" run igt "$RESULTS" -s $VERBOSE $EXCLUDE $FILTER + sudo IGT_TEST_ROOT="$IGT_TEST_ROOT" "$PIGLIT" run --overwrite igt "$RESULTS" -s $VERBOSE $EXCLUDE $FILTER fi if [ "$SUMMARY" == "html" ]; then
Signature · 6 lines
2.4.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Isn't this as https://patchwork.freedesktop.org/series/4177/?
Quoted 11 lines · Rodrigo Vivi
The following piglit commit adds one option to overwrite files:
commit
ec317ece07afdf9c8a26de04bdec8a94e5d7b2dbAuthor: Dylan Baker <[email protected]> Date: Mon Feb 1 15:08:23 2016 -0800
framework/programs/run.py: Add option for overwriting filesSo our
run-script.shtest that creates the directory before executing the tests were failing with:
Quoted 6 lines
"Fatal Error: Cannot overwrite existing folder w/o the -o /--overwrite option being sent"
I believe it took a while to notice that because many of us never upgrade the piglit. But also the risk with this patch is to have an environment with the old piglit so the result will be:
piglit: error: unrecognized arguments: --overwrite
Maybe we can test against piglit version and use it accordingly.
Quoted 32 lines
So, let's start the discussion and also provide the patch that allows some people with new version to get it running.
Cc Dylan Baker <[email protected]>Cc Alexandra Yates <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>--- scripts/run-tests.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)scripts/run-tests.sh +1
-2@@ -124,8 +124,7 @@ fi if [ "x$RESUME" != "x" ]; then sudo IGT_TEST_ROOT="$IGT_TEST_ROOT" "$PIGLIT" resume "$RESULTS" $NORETRY else - mkdir -p "$RESULTS" - sudo IGT_TEST_ROOT="$IGT_TEST_ROOT" "$PIGLIT" run igt "$RESULTS" -s $VERBOSE $EXCLUDE $FILTER + sudo IGT_TEST_ROOT="$IGT_TEST_ROOT" "$PIGLIT" run --overwrite igt "$RESULTS" -s $VERBOSE $EXCLUDE $FILTER fi if [ "$SUMMARY" == "html" ]; thenSignature · 6 lines
2.4.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 18 lines · Marius Vlad
Isn't this as https://patchwork.freedesktop.org/series/4177/?
Quoted 15 lines · Rodrigo Vivi
The following piglit commit adds one option to overwrite files:
commit
ec317ece07afdf9c8a26de04bdec8a94e5d7b2dbAuthor: Dylan Baker <[email protected]> Date: Mon Feb 1 15:08:23 2016 -0800
framework/programs/run.py: Add option for overwriting filesSo our
run-script.shtest that creates the directory before executing
the tests were failing with:"Fatal Error: Cannot overwrite existing folder w/o the -o /- -overwrite option being sent"
Quoted 7 lines
Quoted 5 lines
I believe it took a while to notice that because many of us never upgrade the piglit. But also the risk with this patch is to have an environment
with the old piglit so the result will be:
piglit: error: unrecognized arguments: --overwriteMaybe we can test against piglit version and use it accordingly.
Yeah, I wondered that... but apparently piglit doesn't return the version...
The ugly way that came to my mind was something like:
$PIGLIT run --help | grep overwrite > /dev/null
if [ $? -eq 0 ]; then
# use overwwrite else # keep the old fi
any non-ugly idea?
Quoted 29 lines
Quoted 29 lines
So, let's start the discussion and also provide the patch that allows
some people with new version to get it running.Cc Dylan Baker <[email protected]>Cc Alexandra Yates <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>--- scripts/run-tests.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)scripts/run-tests.sh +0
-0@@ -124,8 +124,7 @@ fi if [ "x$RESUME" != "x" ]; then sudo IGT_TEST_ROOT="$IGT_TEST_ROOT" "$PIGLIT" resume"$RESULTS" $NORETRY
elsescripts/run-tests.sh +0
-2- mkdir -p "$RESULTS" - sudo IGT_TEST_ROOT="$IGT_TEST_ROOT" "$PIGLIT" run igt"$RESULTS" -s $VERBOSE $EXCLUDE $FILTER
scripts/run-tests.sh +1
-1+ sudo IGT_TEST_ROOT="$IGT_TEST_ROOT" "$PIGLIT" run - -overwrite igt "$RESULTS" -s $VERBOSE $EXCLUDE $FILTER fi
Quoted 1 line
Quoted 1 line
if [ "$SUMMARY" == "html" ]; then
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Vivi, Rodrigo (2016-03-21 19:00:10)
Quoted 31 lines · Marius Vlad
Quoted 18 lines
Isn't this as https://patchwork.freedesktop.org/series/4177/?
Quoted 15 lines · Rodrigo Vivi
The following piglit commit adds one option to overwrite files:
commit
ec317ece07afdf9c8a26de04bdec8a94e5d7b2dbAuthor: Dylan Baker <[email protected]> Date: Mon Feb 1 15:08:23 2016 -0800
framework/programs/run.py: Add option for overwriting filesSo our
run-script.shtest that creates the directory before executing
the tests were failing with:"Fatal Error: Cannot overwrite existing folder w/o the -o /- -overwrite option being sent"
Quoted 7 lines
Quoted 5 lines
I believe it took a while to notice that because many of us never upgrade the piglit. But also the risk with this patch is to have an environment
with the old piglit so the result will be:
piglit: error: unrecognized arguments: --overwriteMaybe we can test against piglit version and use it accordingly.
Yeah, I wondered that... but apparently piglit doesn't return the version...
The ugly way that came to my mind was something like:
Quoted 9 lines
$PIGLIT run --help | grep overwrite >
/dev/null
if [ $? -eq 0 ]; then# use overwwrite else # keep the old fiany non-ugly idea?
I was just thinking that it was stupid that piglit doesn't have a version of any kind. I'm planning to add one although it will only be a git sha and maybe a date since piglit intentionally doesn't have major or minor version numbers.
Dylan
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 44 lines · Dylan Baker
Quoting Vivi, Rodrigo (2016-03-21 19:00:10)
Quoted 33 lines · Marius Vlad
Quoted 26 lines
Isn't this as https://patchwork.freedesktop.org/series/4177/?
Quoted 15 lines · Rodrigo Vivi
The following piglit commit adds one option to overwrite files:
commit
ec317ece07afdf9c8a26de04bdec8a94e5d7b2dbAuthor: Dylan Baker <[email protected]> Date: Mon Feb 1 15:08:23 2016 -0800
framework/programs/run.py: Add option for overwriting filesSo our
run-script.shtest that creates the directory before executing
the tests were failing with:"Fatal Error: Cannot overwrite existing folder w/o the -o /- -overwrite option being sent"
Quoted 7 lines
I believe it took a while to notice that because many of us never
upgrade the piglit. But also the risk with this patch is to have an
environment
with the old piglit so the result will be:
piglit: error: unrecognized arguments: --overwriteQuoted 1 line
Maybe we can test against piglit version and use it accordingly.
Yeah, I wondered that... but apparently piglit doesn't return the version...
The ugly way that came to my mind was something like:Quoted 9 lines
$PIGLIT run --help | grep overwrite >
/dev/null
if [ $? -eq 0 ]; then# use overwwrite else # keep the old fiany non-ugly idea?
Quoted 6 lines
I was just thinking that it was stupid that piglit doesn't have a version of any kind. I'm planning to add one although it will only be a
git sha and maybe a date since piglit intentionally doesn't have major
or minor version numbers.
Thanks Dylan.... But how will you handle the piglig installed in /usr/local/bin? Maybe we can have one version in our piglit dir inside igt but another version in the system what could be different and misslead this check.
Quoted 2 lines
Dylan
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Vivi, Rodrigo (2016-03-23 18:52:38)
Quoted 6 lines
Thanks Dylan.... But how will you handle the piglig installed in
/usr/local/bin? Maybe we can have one version in our piglit dir inside igt but another version in the system what could be different and misslead this check.
I have this: https://patchwork.freedesktop.org/patch/77901/, the only problem I see with it is that my cmake isn't correct, and the file wont be regenerated if the git commit changes.
The basic idea is that if piglit is installed a version.py is generated and when it's not git is directly called to get the sha and date. Does this meet your requirements?
Dylan
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 34 lines · Rodrigo Vivi
The following piglit commit adds one option to overwrite files:
commit
ec317ece07afdf9c8a26de04bdec8a94e5d7b2dbAuthor: Dylan Baker <[email protected]> Date: Mon Feb 1 15:08:23 2016 -0800
framework/programs/run.py: Add option for overwriting filesSo our
run-script.shtest that creates the directory before executing the tests were failing with:"Fatal Error: Cannot overwrite existing folder w/o the -o /--overwrite option being sent"
I believe it took a while to notice that because many of us never upgrade the piglit. But also the risk with this patch is to have an environment with the old piglit so the result will be:
piglit: error: unrecognized arguments: --overwriteSo, let's start the discussion and also provide the patch that allows some people with new version to get it running.
Cc Dylan Baker <[email protected]>Cc Alexandra Yates <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>--- scripts/run-tests.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)scripts/run-tests.sh +0
-0
scripts/run-tests.sh fi · line 130
Quoted 9 lines
scripts/run-tests.sh +1
-2@@ -124,8 +124,7 @@ fi if [ "x$RESUME" != "x" ]; then sudo IGT_TEST_ROOT="$IGT_TEST_ROOT" "$PIGLIT" resume "$RESULTS" $NORETRY else - mkdir -p "$RESULTS" - sudo IGT_TEST_ROOT="$IGT_TEST_ROOT" "$PIGLIT" run igt "$RESULTS" -s $VERBOSE $EXCLUDE $FILTER + sudo IGT_TEST_ROOT="$IGT_TEST_ROOT" "$PIGLIT" run --overwrite igt "$RESULTS" -s $VERBOSE $EXCLUDE $FILTER fi if [ "$SUMMARY" == "html" ]; then
I've sent something similar some time ago:
https://patchwork.freedesktop.org/patch/76050/
Gabriel.
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
ops, I have missed that. I'm really sorry Gabriel for duplicating that effort.
After we figure out what to do with different piglit versions we can take yours...
Sorry,
Rodrigo.
Quoted 50 lines · Gabriel Feceoru
Quoted 48 lines · Rodrigo Vivi
The following piglit commit adds one option to overwrite files:
commit
ec317ece07afdf9c8a26de04bdec8a94e5d7b2dbAuthor: Dylan Baker <[email protected]> Date: Mon Feb 1 15:08:23 2016 -0800
framework/programs/run.py: Add option for overwriting filesSo our
run-script.shtest that creates the directory before executing
the tests were failing with:"Fatal Error: Cannot overwrite existing folder w/o the -o /- -overwrite option being sent"
I believe it took a while to notice that because many of us never upgrade the piglit. But also the risk with this patch is to have an environment
with the old piglit so the result will be:
piglit: error: unrecognized arguments: --overwriteSo, let's start the discussion and also provide the patch that allows
some people with new version to get it running.Cc Dylan Baker <[email protected]>Cc Alexandra Yates <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>--- scripts/run-tests.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)scripts/run-tests.sh +0
-0@@ -124,8 +124,7 @@ fi if [ "x$RESUME" != "x" ]; then sudo IGT_TEST_ROOT="$IGT_TEST_ROOT" "$PIGLIT" resume"$RESULTS" $NORETRY
elsescripts/run-tests.sh +0
-2- mkdir -p "$RESULTS" - sudo IGT_TEST_ROOT="$IGT_TEST_ROOT" "$PIGLIT" run igt"$RESULTS" -s $VERBOSE $EXCLUDE $FILTER
scripts/run-tests.sh +1
-1+ sudo IGT_TEST_ROOT="$IGT_TEST_ROOT" "$PIGLIT" run - -overwrite igt "$RESULTS" -s $VERBOSE $EXCLUDE $FILTER fi
Quoted 9 lines
Quoted 2 lines
if [ "$SUMMARY" == "html" ]; then
I've sent something similar some time ago:
https://patchwork.freedesktop.org/patch/76050/
Gabriel.
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx