After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 752461 - validate:launcher: skip default assets for --medias-paths
validate:launcher: skip default assets for --medias-paths
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-devtools
unspecified
Other Linux
: Normal enhancement
: 1.5.90
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-07-16 03:45 UTC by Vineeth
Modified: 2015-08-16 13:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
add skip-default paths property (2.24 KB, patch)
2015-07-16 03:47 UTC, Vineeth
none Details | Review
skip default assets for --media-paths option (1.11 KB, patch)
2015-07-16 09:28 UTC, Vineeth
none Details | Review
skip default assets for --media-paths option (2.02 KB, patch)
2015-07-16 10:14 UTC, Vineeth
none Details | Review
skip default assets for --media-paths option (1.27 KB, patch)
2015-07-16 10:59 UTC, Vineeth
none Details | Review
Force argument added to add_paths. (2.68 KB, patch)
2015-07-16 11:00 UTC, Vineeth
none Details | Review
skip default assets for --media-paths option (1.28 KB, patch)
2015-07-16 11:28 UTC, Vineeth
committed Details | Review

Description Vineeth 2015-07-16 03:45:27 UTC
When --medias-paths is set as run tests for media present 
in the path, it runs test cases on default test media as well.
Added a property skip_default, by which only the media present 
in the path specified will be tested

This can be used like
gst-validate-launcher --medias-paths /path/to/media/files --generate-media-info --skip-default


I couldn't find any way to do this, if already present.
Comment 1 Vineeth 2015-07-16 03:47:10 UTC
Created attachment 307524 [details] [review]
add skip-default paths property
Comment 2 Thibault Saunier 2015-07-16 07:19:39 UTC
Review of attachment 307524 [details] [review]:

Actually we should probably not run tests on default assets if the user sepcifies --media-paths (and he has to explicitely provide the default path if he want it).

Can you provide a patch?
Comment 3 Vineeth 2015-07-16 07:43:16 UTC
Even i wanted to do like that only..
when medias-paths is being set self.paths is being populated..
so probably in add_path, we can check if self.paths is already available and return..

But i was a little skeptical if this is proper, so i thought of adding a new property..
you think checking self.paths and returning is ok?
Comment 4 Thibault Saunier 2015-07-16 08:24:36 UTC
(In reply to Vineeth from comment #3)
> Even i wanted to do like that only..
> when medias-paths is being set self.paths is being populated..
> so probably in add_path, we can check if self.paths is already available and
> return..
> 
> But i was a little skeptical if this is proper, so i thought of adding a new
> property..
> you think checking self.paths and returning is ok?

Not sure where, but yes, something like that.
Comment 5 Vineeth 2015-07-16 09:28:11 UTC
Created attachment 307534 [details] [review]
skip default assets for --media-paths option
Comment 6 Thibault Saunier 2015-07-16 09:47:00 UTC
Review of attachment 307534 [details] [review]:

::: validate/launcher/main.py
@@ -295,3 +295,3 @@
         self.http_server_dir = path
 
     def add_paths(self, paths):

You should add a Force=False option that would bypass that behaviour. That way the testsuite can force the behaviour.
Comment 7 Thibault Saunier 2015-07-16 09:47:03 UTC
Review of attachment 307534 [details] [review]:

::: validate/launcher/main.py
@@ -295,3 +295,3 @@
         self.http_server_dir = path
 
     def add_paths(self, paths):

You should add a Force=False option that would bypass that behaviour. That way the testsuite can force the behaviour.
Comment 8 Vineeth 2015-07-16 10:14:38 UTC
Created attachment 307545 [details] [review]
skip default assets for --media-paths option

added --force-default-dir option to let testsuite force usage of default media directories
Comment 9 Thibault Saunier 2015-07-16 10:29:17 UTC
Review of attachment 307545 [details] [review]:

::: validate/launcher/main.py
@@ +429,3 @@
     dir_group.add_argument("-p", "--medias-paths", dest="paths", action="append",
                            help="Paths in which to look for media files")
+    dir_group.add_argument("-for", "--force-default-dir", dest="force", action="store_true",

I did not mean that, I meant an argument in the add_paths method with a default value=False
Comment 10 Vineeth 2015-07-16 10:59:42 UTC
Created attachment 307549 [details] [review]
skip default assets for --media-paths option

added a Force argument to add_paths
This needs change in gst-integration-testsuites as well.
Updating the same in the next patch.
Comment 11 Vineeth 2015-07-16 11:00:54 UTC
Created attachment 307550 [details] [review]
Force argument added to add_paths.

Default value is set as False.
It should be set to True, when default media directories should be used.
Comment 12 Thibault Saunier 2015-07-16 11:17:33 UTC
Review of attachment 307549 [details] [review]:

::: validate/launcher/main.py
@@ -295,3 +295,3 @@
         self.http_server_dir = path
 
-    def add_paths(self, paths):
+    def add_paths(self, paths, Force):

You should set the default value of Force here:

    def add_paths(self, paths, force=False):
Comment 13 Thibault Saunier 2015-07-16 11:17:40 UTC
Review of attachment 307550 [details] [review]:

Not needed.
Comment 14 Vineeth 2015-07-16 11:28:42 UTC
Created attachment 307551 [details] [review]
skip default assets for --media-paths option

:) please check if this is fine..
Comment 15 Thibault Saunier 2015-07-16 11:30:38 UTC
Review of attachment 307551 [details] [review]:

Good