From dcd62ba910aa8c54576cba0e442478cfacd916d6 Mon Sep 17 00:00:00 2001 From: allgdante 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/python2.7', '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