Folks, Would anyone mind if I added an option to libtbx.run_tests_parallel to automatically make a temporary directory, chdir to there and run? It would mean I could write a little update / build / run tests script more easily. auto_run_dir=true springs to mind as a Phil option. Any thoughts? Thanks & best wishes, Graeme -- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
Graemes-MacBook-Pro:command_line graeme$ svn commit -m "Added auto_run_dir=true phil parameter which will use tempfile.mkdtemp() to make a temporary directory for running and chdir to there; otherwise will check for files in cwd and complain if not empty"
Sending run_tests_parallel.py
Transmitting file data .
Committed revision 18602.
EAFP; http://docs.python.org/2/glossary.html just went ahead and did it ;o) seems to behave as expected with and without command-line token; complain if unhappy
Cheerio, Graeme
On 14 Nov 2013, at 08:24,
Folks,
Would anyone mind if I added an option to libtbx.run_tests_parallel to automatically make a temporary directory, chdir to there and run? It would mean I could write a little update / build / run tests script more easily.
auto_run_dir=true springs to mind as a Phil option. Any thoughts?
Thanks & best wishes,
Graeme -- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
_______________________________________________ cctbxbb mailing list [email protected] http://phenix-online.org/mailman/listinfo/cctbxbb
-- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
I probably would have called it "run_in_tmp_dir" or something like that,
but no objections here.
-Nat
On Thu, Nov 14, 2013 at 12:24 AM,
Folks,
Would anyone mind if I added an option to libtbx.run_tests_parallel to automatically make a temporary directory, chdir to there and run? It would mean I could write a little update / build / run tests script more easily.
auto_run_dir=true springs to mind as a Phil option. Any thoughts?
Thanks & best wishes,
Graeme -- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
_______________________________________________ cctbxbb mailing list [email protected] http://phenix-online.org/mailman/listinfo/cctbxbb
OK that is more in the spirit of obvious naming, agreed.
Cheerio, Graeme
Graemes-MacBook-Pro:command_line graeme$ svn commit -m "Name change: auto_run_dir to more clear run_in_tmp_dir, suggested by Nat"
Sending run_tests_parallel.py
Transmitting file data .
Committed revision 18608.
On 14 Nov 2013, at 15:21, Nathaniel Echols
participants (2)
-
Graeme.Winter@diamond.ac.uk
-
Nathaniel Echols