File tree 5 files changed +26
-11
lines changed
5 files changed +26
-11
lines changed Original file line number Diff line number Diff line change 2
2
/.venv
3
3
/tmp
4
4
/wiki
5
+ /builds
5
6
6
7
# setuptools build files
7
8
/dist
Original file line number Diff line number Diff line change @@ -14,8 +14,13 @@ RUN pacman -S --noconfirm \
14
14
RUN pacman -S --noconfirm \
15
15
python-dbus python-paramiko python-ruamel-yaml
16
16
17
- COPY tests/.ssh /root/.ssh
18
- RUN chmod -R 700 /root/.ssh
17
+ # add a normal user used for testing
18
+ RUN useradd --create-home dups
19
+
20
+ # prepare ssh environment
21
+ COPY tests/.ssh /home/dups/.ssh
22
+ RUN chown -R dups:dups /home/dups/.ssh
23
+ RUN chmod -R 700 /home/dups/.ssh
19
24
20
25
RUN mkdir /var/run/sshd
21
26
RUN /usr/bin/ssh-keygen -A
Original file line number Diff line number Diff line change @@ -18,8 +18,13 @@ RUN apt-get install --no-install-recommends -y \
18
18
RUN apt-get install --no-install-recommends -y \
19
19
python3-dbus python3-paramiko python3-ruamel.yaml
20
20
21
- COPY tests/.ssh /root/.ssh
22
- RUN chmod -R 700 /root/.ssh
21
+ # add a normal user used for testing
22
+ RUN useradd --create-home dups
23
+
24
+ # prepare ssh environment
25
+ COPY tests/.ssh /home/dups/.ssh
26
+ RUN chown -R dups:dups /home/dups/.ssh
27
+ RUN chmod -R 700 /home/dups/.ssh
23
28
24
29
RUN mkdir /var/run/sshd
25
30
RUN /usr/bin/ssh-keygen -A
Original file line number Diff line number Diff line change @@ -18,8 +18,13 @@ RUN apt-get install --no-install-recommends -y \
18
18
RUN apt-get install --no-install-recommends -y \
19
19
python3-dbus python3-paramiko python3-ruamel.yaml
20
20
21
- COPY tests/.ssh /root/.ssh
22
- RUN chmod -R 700 /root/.ssh
21
+ # add a normal user used for testing
22
+ RUN useradd --create-home dups
23
+
24
+ # prepare ssh environment
25
+ COPY tests/.ssh /home/dups/.ssh
26
+ RUN chown -R dups:dups /home/dups/.ssh
27
+ RUN chmod -R 700 /home/dups/.ssh
23
28
24
29
RUN mkdir /var/run/sshd
25
30
RUN /usr/bin/ssh-keygen -A
Original file line number Diff line number Diff line change 7
7
8
8
PYTHON=" $1 "
9
9
10
- cp -r /dups /tmp/dups
11
- cd /tmp/dups
12
-
10
+ cp -r /dups /home/dups/source
11
+ chown -R dups:dups /home/dups/source
13
12
14
13
# SSH server is required for remote tests
15
14
/usr/sbin/sshd
16
15
17
16
# Run all unittests
18
- ${PYTHON} -m unittest discover -v -s tests
19
-
17
+ cd /home/dups/source
18
+ su dups -c " ${PYTHON} -m unittest discover -v -s tests "
You can’t perform that action at this time.
0 commit comments