Python regx two find all between two pattern : in my test log file, i want to find all the line between these two

--- /b/act-builder/sandboxes/ACT-SB-RELEASE_174_THROTTLE-28378/src/junos/usr.sbin/rpd/lib/policy/atf-tests.host,linux ---

*** [atf-run.log] Error code

where the first line pattern will always start like --- /b/act-builder/sandboxes/

and end like linux ---

My Solution Which is not working:-

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-js -->

    file = open('atf_log_28378.txt', "r")
    for result in re.findall('^--- /b/act-builder/(.*?)Error code', file.read(), re.S):
        print 'Failed test cases:' + result + '\n'

<!-- end snippet -->

