1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-20 17:55:15 +03:00
aports/testing/apparmor/0005-utils-adjust-tests-to-match-the-Alpine-layout.patch
2019-06-07 05:13:34 +00:00

35 lines
1.9 KiB
Diff

From dcd62ba910aa8c54576cba0e442478cfacd916d6 Mon Sep 17 00:00:00 2001
From: allgdante <allan.garret@gmail.com>
Date: Wed, 4 Jul 2018 17:11:42 +0200
Subject: [PATCH 5/7] utils: adjust tests to match the Alpine layout
Here we need to adjust several utilities path with the ones used by
Alpine
---
utils/test/test-aa.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/utils/test/test-aa.py b/utils/test/test-aa.py
index d93b8eae..b40a2001 100644
--- a/utils/test/test-aa.py
+++ b/utils/test/test-aa.py
@@ -154,12 +154,12 @@ class AaTest_get_interpreter_and_abstraction(AATest):
tests = [
('#!/bin/bash', ('/bin/bash', 'abstractions/bash')),
('#!/bin/dash', ('/bin/dash', 'abstractions/bash')),
- ('#!/bin/sh', ('/bin/sh', 'abstractions/bash')),
- ('#! /bin/sh ', ('/bin/sh', 'abstractions/bash')),
- ('#! /bin/sh -x ', ('/bin/sh', 'abstractions/bash')), # '-x' is not part of the interpreter path
+ ('#!/bin/sh', ('/bin/sh', None)),
+ ('#! /bin/sh ', ('/bin/sh', None)),
+ ('#! /bin/sh -x ', ('/bin/sh', None)), # '-x' is not part of the interpreter path
('#!/usr/bin/perl', ('/usr/bin/perl', 'abstractions/perl')),
('#!/usr/bin/perl -w', ('/usr/bin/perl', 'abstractions/perl')), # '-w' is not part of the interpreter path
- ('#!/usr/bin/python', ('/usr/bin/python', 'abstractions/python')),
+ ('#!/usr/bin/python', ('/usr/bin/python', 'abstractions/python')),
('#!/usr/bin/python2', ('/usr/bin/python2', 'abstractions/python')),
('#!/usr/bin/python2.7', ('/usr/bin/python2.7', 'abstractions/python')),
('#!/usr/bin/python3', ('/usr/bin/python3', 'abstractions/python')),
--
2.20.1