Skip to content

Commit d57063d

Browse files
daikk115tbreeds
authored andcommitted
Use generic user for both zuul v2 and v3
Zuul v2 uses 'jenkins' as user, but Zuul v3 uses 'zuul'. Using $USER solves it for both cases. Change-Id: Ia3f2646bd3b5fa87c90c8dac57117fd29d73706b (cherry picked from commit 4707422)
1 parent c632560 commit d57063d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

novaclient/tests/functional/hooks/post_test_hook.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ function generate_testr_results {
2121
sudo /usr/os-testr-env/bin/subunit2html $BASE/logs/testrepository.subunit $BASE/logs/testr_results.html
2222
sudo gzip -9 $BASE/logs/testrepository.subunit
2323
sudo gzip -9 $BASE/logs/testr_results.html
24-
sudo chown jenkins:jenkins $BASE/logs/testrepository.subunit.gz $BASE/logs/testr_results.html.gz
24+
sudo chown $USER:$USER $BASE/logs/testrepository.subunit.gz $BASE/logs/testr_results.html.gz
2525
sudo chmod a+r $BASE/logs/testrepository.subunit.gz $BASE/logs/testr_results.html.gz
2626
fi
2727
}
2828

2929
export NOVACLIENT_DIR="$BASE/new/python-novaclient"
3030

31-
sudo chown -R jenkins:stack $NOVACLIENT_DIR
31+
sudo chown -R $USER:stack $NOVACLIENT_DIR
3232

3333
# Go to the novaclient dir
3434
cd $NOVACLIENT_DIR
@@ -37,7 +37,7 @@ cd $NOVACLIENT_DIR
3737
echo "Running novaclient functional test suite"
3838
set +e
3939
# Preserve env for OS_ credentials
40-
sudo -E -H -u jenkins tox -e ${TOX_ENV:-functional}
40+
sudo -E -H -u $USER tox -e ${TOX_ENV:-functional}
4141
EXIT_CODE=$?
4242
set -e
4343

0 commit comments

Comments
 (0)