Browse Source

Use generic user for zuul v3

The manila post_test_hook.sh script still
uses jenkins as user, but with zuulv3 that
should be zuul. $USER solves that issue.

Change-Id: I23299a15249be292e3a60450db2adea0abab64bb
Raissa Sarmento 1 year ago
parent
commit
658c7a6847
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      manila/post_test_hook.sh

+ 3
- 3
manila/post_test_hook.sh View File

@@ -16,8 +16,8 @@
16 16
 
17 17
 TEMPEST_CONFIG=$BASE/new/tempest/etc/tempest.conf
18 18
 
19
-sudo chown -R jenkins:stack $BASE/new/tempest
20
-sudo chown -R jenkins:stack $BASE/data/tempest
19
+sudo chown -R $USER:stack $BASE/new/tempest
20
+sudo chown -R $USER:stack $BASE/data/tempest
21 21
 sudo chmod -R o+rx $BASE/new/devstack/files
22 22
 
23 23
 # Import devstack functions 'iniset'
@@ -127,7 +127,7 @@ iniset $TEMPEST_CONFIG validation ssh_timeout $BUILD_TIMEOUT
127 127
 iniset $TEMPEST_CONFIG validation network_for_ssh ${PRIVATE_NETWORK_NAME:-"private"}
128 128
 
129 129
 echo "Running tempest manila test suites"
130
-sudo -H -u jenkins tox -eall-plugin $MANILA_TESTS -- --concurrency=$MANILA_TEMPEST_CONCURRENCY
130
+sudo -H -u $USER tox -eall-plugin $MANILA_TESTS -- --concurrency=$MANILA_TEMPEST_CONCURRENCY
131 131
 
132 132
 _retval=$?
133 133
 

Loading…
Cancel
Save