summaryrefslogtreecommitdiffstats
path: root/security/nss/automation/taskcluster/scripts/run_tests.sh
blob: 4c87e7e32763cf5e04a1da6ef66f034011f9727f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash

source $(dirname $0)/tools.sh

if [ $(id -u) = 0 ]; then
    # Stupid Docker.
    echo "127.0.0.1 localhost.localdomain" >> /etc/hosts

    # Drop privileges by re-running this script.
    exec su worker $0
fi

# Fetch artifact if needed.
fetch_dist

# Run tests.
cd nss/tests && ./all.sh