Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf-test.git/shortlog/e4c7ed6738e9621ce24cd279558e30728aba4a09
...commit 
http://git.netsurf-browser.org/netsurf-test.git/commit/e4c7ed6738e9621ce24cd279558e30728aba4a09
...tree 
http://git.netsurf-browser.org/netsurf-test.git/tree/e4c7ed6738e9621ce24cd279558e30728aba4a09

The branch, master has been updated
       via  e4c7ed6738e9621ce24cd279558e30728aba4a09 (commit)
      from  fe670174a105e1a07fb38db1b2d318979b0a68e8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf-test.git/commit/?id=e4c7ed6738e9621ce24cd279558e30728aba4a09
commit e4c7ed6738e9621ce24cd279558e30728aba4a09
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>

    check for index yaml in the division directory

diff --git a/cgi-bin/monkey-index.cgi b/cgi-bin/monkey-index.cgi
index 7154dc2..3d3b380 100755
--- a/cgi-bin/monkey-index.cgi
+++ b/cgi-bin/monkey-index.cgi
@@ -51,11 +51,11 @@ def main():
         with open(os.path.join(testroot, fname), "r") as file_handle:
             files[fname] = yaml.load(file_handle, Loader=yaml.CSafeLoader)
 
-    if 'index.yaml' not in files:
+    if division + '/index.yaml' not in files:
         print('# Division has no index')
         return
 
-    for group in files['index.yaml']:
+    for group in files[division + '/index.yaml']:
         if group_filter is not None and group_filter != group['group']:
             continue
         print("---")


-----------------------------------------------------------------------

Summary of changes:
 cgi-bin/monkey-index.cgi |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cgi-bin/monkey-index.cgi b/cgi-bin/monkey-index.cgi
index 7154dc2..3d3b380 100755
--- a/cgi-bin/monkey-index.cgi
+++ b/cgi-bin/monkey-index.cgi
@@ -51,11 +51,11 @@ def main():
         with open(os.path.join(testroot, fname), "r") as file_handle:
             files[fname] = yaml.load(file_handle, Loader=yaml.CSafeLoader)
 
-    if 'index.yaml' not in files:
+    if division + '/index.yaml' not in files:
         print('# Division has no index')
         return
 
-    for group in files['index.yaml']:
+    for group in files[division + '/index.yaml']:
         if group_filter is not None and group_filter != group['group']:
             continue
         print("---")


-- 
NetSurf test cases

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to