[asterisk-dev] [Code Review] 3313: Testsuite: Convert YAML Configuration Into Call File and Execute

Scott Emidy reviewboard at asterisk.org
Fri Mar 28 13:31:07 CDT 2014



> On March 28, 2014, 4:59 p.m., Mark Michelson wrote:
> > ./asterisk/trunk/lib/python/asterisk/pluggable_modules.py, lines 330-331
> > <https://reviewboard.asterisk.org/r/3313/diff/3/?file=56734#file56734line330>
> >
> >     I think if you use shutil.move2 instead of shutil.move, you won't have to call os.utime on the destination file. shutil.move2 moves the file contents and also updates file metadata.
> >     
> >     You might want to give it a test just to be certain though.

shutil.move2() didn't seem to work for some reason. I couldn't even find anything on the internet for it. Let me know if you can think of a way to implement it and I'll get on it.


- Scott


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3313/#review11432
-----------------------------------------------------------


On March 28, 2014, 6:28 p.m., Scott Emidy wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/3313/
> -----------------------------------------------------------
> 
> (Updated March 28, 2014, 6:28 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Bugs: ASTERISK-23217
>     https://issues.asterisk.org/jira/browse/ASTERISK-23217
> 
> 
> Repository: testsuite
> 
> 
> Description
> -------
> 
> This test uses the Pluggable Module Framework in order to convert a YAML configuration into an executable Call File by putting it into the correct directory, which is the 'astspooldir' directory.
> 
> 
> Diffs
> -----
> 
>   ./asterisk/trunk/tests/pbx/tests.yaml 4726 
>   ./asterisk/trunk/tests/pbx/create_call_files/test-config.yaml PRE-CREATION 
>   ./asterisk/trunk/tests/pbx/create_call_files/configs/ast1/extensions.conf PRE-CREATION 
>   ./asterisk/trunk/sample-yaml/callfiles-config.yaml.sample PRE-CREATION 
>   ./asterisk/trunk/lib/python/asterisk/pluggable_modules.py 4726 
> 
> Diff: https://reviewboard.asterisk.org/r/3313/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Scott Emidy
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140328/431a3121/attachment.html>


More information about the asterisk-dev mailing list