From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id ECAE346B9C; Thu, 17 Jul 2025 10:27:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C9DD040647; Thu, 17 Jul 2025 10:27:27 +0200 (CEST) Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) by mails.dpdk.org (Postfix) with ESMTP id 0557C400D6 for ; Wed, 16 Jul 2025 17:30:58 +0200 (CEST) Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-7dd8773f9d9so556626785a.2 for ; Wed, 16 Jul 2025 08:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1752679857; x=1753284657; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=u3mNE7S4v2dF0K8dCGkfhrcxNbY1JBkaPek8FwdXFKs=; b=V7BVOanUc0OGzaQeIbv7M/pCxGWD2iG5QEDtxjJEjI3gub8WjH1837jfNgR0JHXNdE 8JtpRYMncrkku83HKd183bHvOmLb0tbj1TO4KNMkRqkkevt9zckc23i80YKtC2KSZjQr dQo5AMg6cdA8l4UUpApnlAAin+/o61LK8rDnY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752679857; x=1753284657; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=u3mNE7S4v2dF0K8dCGkfhrcxNbY1JBkaPek8FwdXFKs=; b=WQ3kPEE7YpFJQvBpLuz+UNWzkyhOnfYrivTi/Kkwg6SV3tkqM8tZ6lGfnzY+KSs06u FrSXljPlR9f+YNfjHc0haFEALSzzth9Jxi8soU97omMg/eRAk/z+rKJ4HrU+n/VIfO9z 71PjvaI2nzuJr8tubtxym2i4PnikgaMHN/Olb+bIKT2AQHLuon24n9Fmytq3AWmBjzyU IAi37Uech6sHfCTpj5l0tg8QaHi6fTwLZrclkOcgBeq98ZVC7gHqoqqwR2xvOtGWDXqh xFXKnaf37SEYJI/5wfUAq3wHzH//emlTC/qBXqvNMRY7OJxrP2WsC8X4jGPpAOwthxeO DPCA== X-Gm-Message-State: AOJu0YyFlG8rUEk5bx8CDEckxYyQbVqKlgrHDZuts9mEsa4X8hvlGcUN FbgkyZqtMuYCJ/r3zuQiM3SJeEqGkqe6rw6RRFQl3Y5S2XawBiodXnAyPC6PuoC59iT2ORULVDb WcY07BGYs2oA/HVDR+34t3yTvfEogpllzcfVabT/al25JDaEgIrGzYMeGfAbuwwruCSz6JFLxtR pyykudUHP2seO1/ze+StlfHRrsuc5EUPA= X-Gm-Gg: ASbGnct7NHpCyd5KHLFEUt6hbl7zF+d9wme1XqF+6mr1sLGVlB0njn2JpUuhnLuwpbj 2xUiqtbUmC4McZZ2V9YUeFdFjbdkj4tO73eH3p2eGyvOCSVd5PytAD2QvASi8JTrZk2+oIWXsqs Nwiv/CswZKUpcAV+5qylgU1pj+qGO9RdXCWAlzoQM5daYZy8QZhbKsCCwmca5o4bA61uHLI1Gc9 4rZ85ne9J5YRI26PezNvORtZfG56YogC2JAADB5rYQtNU3S1fWdJxfhb5j0Z5WqtoT9VC0oh00U 5HmemNDc5qdCeF0Qyqw1Zu6xX7XDLXeq7dS+ExsB+ckTd0gNY9sM8wzuI5G/qXjFu6YOmsTFtOG aLH8MQzQk/cHnD44EjC057K+CzkKAcZG9Nta4ThzekI10IdU/4mTlOQqvsGki+Ya/0tF151s= X-Google-Smtp-Source: AGHT+IEnG6ABWLui3R32omwU7C+eCzu2juREFmkMvsGctQ7pG+n8UlhEQ4HRIbmBahNS/D7n4Hk+XQ== X-Received: by 2002:a05:620a:1a91:b0:7e3:352a:59f1 with SMTP id af79cd13be357-7e342a60364mr549119485a.10.1752679856851; Wed, 16 Jul 2025 08:30:56 -0700 (PDT) Received: from localhost.unh.edu (targon.iol.unh.edu. [132.177.125.242]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7e332a79582sm290256185a.6.2025.07.16.08.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jul 2025 08:30:56 -0700 (PDT) From: Manit Mahajan To: dts@dpdk.org Cc: probb@iol.unh.edu, david.marchand@redhat.com, Manit Mahajan Subject: [PATCH v2] compress: resolve test failure from incomplete output capture Date: Wed, 16 Jul 2025 11:28:50 -0400 Message-ID: <20250716152850.11195-1-mmahajan@iol.unh.edu> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Thu, 17 Jul 2025 10:27:24 +0200 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org The compress unit test uses send_expect() with '>' to determine when the command completed. A recent patch introduced a deprecation warning for coremask, which includes a '>' in the output. This causes send_expect() to exit early, resulting in missed test output, leading to false failures. This is fixed by changing the expected termination prompt from '>' to 'RTE'. This change address issues from the v1 patch, which incorrectly modified the EAL option from coremask to corelist. Signed-off-by: Manit Mahajan --- tests/compress_common.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/compress_common.py b/tests/compress_common.py index aa591270..94c6f9dd 100644 --- a/tests/compress_common.py +++ b/tests/compress_common.py @@ -63,6 +63,7 @@ def bind_qat_device(test_case, driver="igb_uio"): def get_opt_str(test_case, default_opts={}, override_opts={}): case_cfg = conf.load_case_config(test_case._suite_result.test_case) + print("case_cfg ", case_cfg) opts = default_opts.copy() for key in list(default_opts.keys()): if key in case_cfg: @@ -70,6 +71,8 @@ def get_opt_str(test_case, default_opts={}, override_opts={}): opts.update(override_opts) + print("opts ", opts) + opt_str = "" for key, value in list(opts.items()): if value is None: @@ -77,6 +80,7 @@ def get_opt_str(test_case, default_opts={}, override_opts={}): dash = "-" if len(key) == 1 else "--" opt_str = opt_str + "{0}{1} {2} ".format(dash, key, value) + print('opt_str ', opt_str) return opt_str @@ -106,8 +110,8 @@ def run_unit(test_case, eal={}): cmdline = "./{app_path} {eal}".format( app_path=test_case.dut.apps_name["test"], eal=eal_str ) - test_case.dut.send_expect(cmdline, ">", 30) - out = test_case.dut.send_expect("compressdev_autotest", ">", 30) + test_case.dut.send_expect(cmdline, "RTE>", 30) + out = test_case.dut.send_expect("compressdev_autotest", "RTE>", 30) test_case.dut.send_expect("quit", "# ", 30) print(out) -- 2.41.0