1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/testprogs/blackbox
Christof Schmitt 0b1ba00b00 testprogs: Ignore escape characters when printing test name
Long story: This was triggered by the addition of the test_trust_ntlm.sh
script in commits 3caca9b and 2de1994. test_trust_ntlm.sh creates a
variable CREDS="$REALM\\$USERNAME%$PASSWORD" that is then used as part
of the test name. subunit.sh uses echo to print the name that is then
picked up by subunithelper.py. test_trust_ntlm.sh also uses /bin/sh as
shell which can be a POSIX compliant shell like dash.

This combination broke 'make test' for any username starting with the
letter c. In this case CREDS contains the escape sequence \c that is
defined to stop producing further output at this point. dash implements
this feature and the echo in subunit.sh as a result skips the output
after \c, including skipping the newline. This means that the data
received by subunithelper.py contains the timestamp from the next line
in the test name, which then breaks the testcase tracking.

Fix this by replacing the echo in subunit.sh with a printf that does not
trigger the special handling of escape characters.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri May  5 23:44:16 CEST 2017 on sn-devel-144
2017-05-05 23:44:16 +02:00
..
wintest
bogus.sh testprogs: Fix usage printout of bogus blackbox test 2017-04-29 23:31:10 +02:00
common_test_fns.inc testprogs: Add common kinit function 2017-04-29 23:31:08 +02:00
dbcheck-links.sh tests/dbcheck-links: remove spurious sleeping 2017-03-13 05:10:12 +01:00
dbcheck-oldrelease.sh dbcheck: assert uSNChanged values in release-4-5-0-pre1 2016-09-08 14:39:19 +02:00
dbcheck.sh dbcheck: Replica locations can now be leftover 2016-07-21 06:37:08 +02:00
demote-saveddb.sh selftest: Confirm a demote of a real network works 2015-10-26 08:17:47 +01:00
dfree.sh selftest: more dfree command and smbclient disk usage tests 2016-01-06 03:58:59 +01:00
dom_parse.sh Add a blackbox tests for id & getent to test domain@realm type credentials 2016-10-03 19:49:19 +02:00
nsstest.sh s4-selftest re-enable nsstest on libnss_winbind.so 2011-12-07 03:09:08 +01:00
renamedc.sh dbcheck: Do not regard old one-way-links as errors 2017-02-13 03:39:23 +01:00
subunit.sh testprogs: Ignore escape characters when printing test name 2017-05-05 23:44:16 +02:00
test_chgdcpass.sh testprogs: Fix test_chgdcpass blackbox test with MIT 2017-04-29 23:31:09 +02:00
test_client_etypes.sh testprogs: Use own credential cache for test_client_etypes.sh 2016-09-25 09:05:27 +02:00
test_export_keytab_heimdal.sh selfttest: add common_test_fns.inc 2016-04-28 16:50:35 +02:00
test_export_keytab_mit.sh testprogs: Add test with exported keytab from samba-tool 2017-04-29 23:31:10 +02:00
test_kinit_heimdal.sh selfttest: add common_test_fns.inc 2016-04-28 16:50:35 +02:00
test_kinit_mit.sh testprogs: Add test_kinit_mit.sh test 2017-04-29 23:31:10 +02:00
test_kinit_trusts_heimdal.sh testprogs: Add kinit_trusts tests with smbclient4 2017-03-10 11:37:21 +01:00
test_kinit_trusts_mit.sh testprogs: Add a kinit trust test for MIT KDC 2017-04-29 23:31:10 +02:00
test_kpasswd_heimdal.sh testprogs: Test only what the Heimdal kpasswd test should test 2016-09-11 02:58:22 +02:00
test_kpasswd_mit.sh testprogs: Add MIT Kerberos specific kpasswd blackbox test 2017-04-29 23:31:11 +02:00
test_ktpass.sh testprogs: Do not use the deprecated samba-tool user add 2016-07-07 02:15:16 +02:00
test_ldb_simple.sh CVE-2016-2112: s4:selftest: run some ldap test against ad_dc_ntvfs, fl2008r2dc and fl2003dc 2016-04-12 19:25:25 +02:00
test_ldb.sh lib/tls: Change default supported TLS versions. 2015-07-20 03:08:26 +02:00
test_net_ads_dns.sh testprogs/blackbox: Improve the net ads dns register tests. 2016-07-03 14:24:58 +02:00
test_net_ads.sh testprogs: Test 'net ads join' with a dedicated keytab 2017-03-14 15:22:12 +01:00
test_password_settings.sh testprogs: Use better KRB5CCNAME in test_password_settings.sh 2016-12-21 18:35:12 +01:00
test_pdbtest.sh selfttest: add common_test_fns.inc 2016-04-28 16:50:35 +02:00
test_pkinit_heimdal.sh test_pkinit_heimdal.sh: add some more tests regarding the UF_SMARTCARD_REQUIRED behavior 2016-07-22 23:34:21 +02:00
test_pkinit_pac_heimdal.sh testprogs/blackbox: add test_pkinit_pac_heimdal.sh 2016-07-22 23:34:21 +02:00
test_samba_upgradedns.sh testprogs: Use the system binaries for KRB5 if we don't build in-tree heimdal. 2014-09-01 15:47:33 +02:00
test_trust_ntlm.sh testprogs/blackbox: add test_trust_ntlm.sh 2017-04-10 01:11:20 +02:00
test_trust_utils.sh testprogs/blackbox: add test_trust_utils.sh 2015-07-08 18:38:22 +02:00
test_wintest.sh
tfork.sh lib/util: add a test for samba_runcmd_send() 2017-04-20 16:53:16 +02:00
tombstones-expunge.sh selftest: Do not test for link ordering in tombstones_expunge test 2017-02-09 03:17:14 +01:00
upgradeprovision-oldrelease.sh provision: Change the default functional level of new Samba domains to 2008R2. 2014-09-30 12:32:05 +02:00