Fix permissions and #! lines for some tests in the upstream build system

d/rules: remove workarounds for script permissions.
The upstream build system now uses the intended permissions throughout.

Retain explicit chmod for *.js, which dh_fixperms assumes should not be executable.
This commit is contained in:
Simon McVittie committed 2017-01-19 12:07:39 +00:00
1 parent f0785125c2
commit 7855081a11
5 files changed
+130 -7

No files matched your search

+3 -7
View File
@@ -25,8 +25,6 @@ override_dh_auto_configure:
--with-grub2-mkconfig-path=/usr/sbin/grub-mkconfig \
--with-systemdsystemunitdir=/lib/systemd/system \
$(NULL)
chmod +x tests/*.js
chmod +x tests/*.sh
override_dh_auto_test:
debian/test.sh
@@ -63,12 +61,10 @@ override_dh_makeshlibs:
dh_makeshlibs -Xinstalled-tests/ostree/libreaddir-rand.so
override_dh_fixperms-arch:
# dh_fixperms assumes *.js are for browsers and makes them 0644.
dh_fixperms -X'*.js'
chmod -v 0755 debian/ostree-tests/usr/lib/installed-tests/ostree/*.js
chmod -v 0755 debian/ostree-tests/usr/lib/installed-tests/ostree/*.py
chmod -v 0755 debian/ostree-tests/usr/lib/installed-tests/ostree/*.sh
# this one is a library, not a script
chmod -v 0644 debian/ostree-tests/usr/lib/installed-tests/ostree/libtest.sh
find debian/tmp -type f -name '*.js' -print0 | \
xargs -0r chmod -v go=rX,u+rw,a-s
override_dh_systemd_start:
dh_systemd_start --no-start