Changeset 2b3a2814 in mod_gnutls


Ignore:
Timestamp:
Jun 25, 2020, 4:11:48 AM (3 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master
Children:
40d4afa
Parents:
22a737b
Message:

check_test_ips.py: Allow appending hostname to checks for CI

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • .github/workflows/build.yml

    r22a737b r2b3a2814  
    3838      - name: find usable IPs for tests
    3939        run: |
    40           echo "::set-env name=test_ips::$(python3 test/check_test_ips.py localhost $(hostname))"
     40          echo "::set-env name=test_ips::$(python3 test/check_test_ips.py -H localhost)"
    4141      - name: set prefix for container-specific artifacts
    4242        # this is because upload-artifact doesn't like ":" in file names
  • test/check_test_ips.py

    r22a737b r2b3a2814  
    4444    parser.add_argument('--quiet', '-q', action='store_true',
    4545                        help='disable debug output')
     46    parser.add_argument('--hostname', '-H', action='store_true',
     47                        help='append socket.gethostname() to hosts')
    4648    args = parser.parse_args()
     49
     50    if args.hostname:
     51        args.hosts.append(socket.gethostname())
    4752
    4853    test_ips = []
Note: See TracChangeset for help on using the changeset viewer.