diff --git a/tests/list_single_profile_46.t b/tests/list_single_profile_46.t new file mode 100755 index 0000000..915c75d --- /dev/null +++ b/tests/list_single_profile_46.t @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +. bash_tap_fd.sh + +PASSWD=$(get_password) +CMD=$(get_script) +TEST="$(get_test_data)/test_profile_firefox_46" + + +# The first process subsitution is rather complex: +# As first we're interested in stderr, so 2>&1. +# get_test_data() generates an absolute path, so we need to make it relative (as the path would be different for each tester) +# last but not least we're also interested in the exit code. + +diff -u <(${CMD} -l ${TEST} 2>&1 | remove_log_date_time | sed "s|${bashtap_org_pwd}/||g"; echo ${PIPESTATUS[0]}) <(get_output_data "list_single_46") + +# vim: ai sts=4 et sw=4 diff --git a/tests/test_data/outputs/list_single_46.output b/tests/test_data/outputs/list_single_46.output new file mode 100644 index 0000000..d4502d9 --- /dev/null +++ b/tests/test_data/outputs/list_single_46.output @@ -0,0 +1,4 @@ +- WARNING - profile.ini not found in test_data/test_profile_firefox_46 +- WARNING - Continuing and assuming 'test_data/test_profile_firefox_46' is a profile location +- ERROR - Listing single profiles not permitted. +2