github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/scripts/release-notes/README.md (about)

     1  This directory contains unit tests for the script `release-notes.py`.
     2  
     3  The provided `Makefile` runs all tests.
     4  
     5  To run a single test invoke with:
     6  
     7  ```
     8  bash ./testN.sh $PWD/../release-notes.py
     9  ```
    10  
    11  Optionally, set the `PYTHON` env var to the path of a python 3
    12  interpreter (useful e.g. if the base `python` command is not v3).
    13  
    14  If the script changes and the reference output is not accurate any
    15  more, you can re-generate a reference output as follows:
    16  
    17  ```
    18  bash ./testN.sh $PWD/../release-notes.py rewrite
    19  ```
    20  
    21  (i.e. provide one more positional argument)