summaryrefslogtreecommitdiff
path: root/keystoneclient/tests/functional
diff options
context:
space:
mode:
authorNam Nguyen Hoai <namnh@vn.fujitsu.com>2017-10-18 13:56:37 +0700
committerNam Nguyen Hoai <namnh@vn.fujitsu.com>2017-10-17 07:29:00 +0000
commit3cf377d577271cdfb9fd7630d3f83f76a4b19a8b (patch)
treeecc7b0c72566495742f513b310ecc6df50f1a136 /keystoneclient/tests/functional
parentdf2c57c5a9c2256a95a726a0d65159353d1f6e48 (diff)
downloadpython-keystoneclient-3cf377d577271cdfb9fd7630d3f83f76a4b19a8b.tar.gz
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: I42cfcd4d8dee2ff3a99e42a5a64f3c38163972b8
Diffstat (limited to 'keystoneclient/tests/functional')
-rwxr-xr-xkeystoneclient/tests/functional/hooks/post_test_hook.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/keystoneclient/tests/functional/hooks/post_test_hook.sh b/keystoneclient/tests/functional/hooks/post_test_hook.sh
index 951c321..a0adfd6 100755
--- a/keystoneclient/tests/functional/hooks/post_test_hook.sh
+++ b/keystoneclient/tests/functional/hooks/post_test_hook.sh
@@ -21,7 +21,7 @@ function generate_testr_results {
sudo /usr/os-testr-env/bin/subunit2html $BASE/logs/testrepository.subunit $BASE/logs/testr_results.html
sudo gzip -9 $BASE/logs/testrepository.subunit
sudo gzip -9 $BASE/logs/testr_results.html
- sudo chown jenkins:jenkins $BASE/logs/testrepository.subunit.gz $BASE/logs/testr_results.html.gz
+ sudo chown $USER:$USER $BASE/logs/testrepository.subunit.gz $BASE/logs/testr_results.html.gz
sudo chmod a+r $BASE/logs/testrepository.subunit.gz $BASE/logs/testr_results.html.gz
fi
}
@@ -35,13 +35,13 @@ source openrc admin admin
# Go to the keystoneclient dir
cd $KEYSTONECLIENT_DIR
-sudo chown -R jenkins:stack $KEYSTONECLIENT_DIR
+sudo chown -R $USER:stack $KEYSTONECLIENT_DIR
# Run tests
echo "Running keystoneclient functional test suite"
set +e
# Preserve env for OS_ credentials
-sudo -E -H -u jenkins tox -efunctional
+sudo -E -H -u $USER tox -efunctional
EXIT_CODE=$?
set -e