Skip to content

Commit 1729ae8

Browse files
authored
[2.0] bmake: fix test issue (#13810)
1 parent 5d65c4b commit 1729ae8

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

SPECS/bmake/bmake.spec

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: The NetBSD make(1) tool
22
Name: bmake
33
Version: 20211221
4-
Release: 2%{?dist}
4+
Release: 3%{?dist}
55
License: BSD
66
Vendor: Microsoft Corporation
77
Distribution: Mariner
@@ -11,6 +11,7 @@ Source0: %{url}/bmake-%{version}.tar.gz
1111
# on pipeline machines. Disabling with this patch for now, and
1212
# tracking this bug in workitem 38644519
1313
Patch0: remove-inconsistent-time-tests.patch
14+
Patch1: do-not-run-tests-on-install.patch
1415
Requires: mk-files
1516

1617
BuildRequires: gcc
@@ -52,6 +53,11 @@ export STRIP=/bin/true # Make sure binary is not stripped
5253
mv %{buildroot}%{_mandir}/{cat,man}1
5354
chmod a-x %{buildroot}%{_datadir}/mk/mkopt.sh
5455

56+
%check
57+
# skip 'job-output-null' which randomly fails in build pipelines
58+
export BROKEN_TESTS=job-output-null
59+
./bmake -m mk test
60+
5561
%files
5662
%doc ChangeLog README
5763
%license LICENSE
@@ -64,6 +70,10 @@ chmod a-x %{buildroot}%{_datadir}/mk/mkopt.sh
6470
%{_datadir}/mk
6571

6672
%changelog
73+
* Thu May 15 2025 Andrew Phelps <[email protected]> - 20211221-3
74+
- Move unit tests to check section
75+
- Disable unreliable test job-output-null
76+
6777
* Tue Mar 22 2022 Cameron Baird <[email protected]> - 20211221-2
6878
- Add patch remove-inconsistent-time-tests.patch, which disables unreliably failing
6979
- tests in varmod-localtime.mk
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
diff -urN a/boot-strap b/boot-strap
2+
--- a/boot-strap 2025-05-16 03:40:30.989548051 +0000
3+
+++ b/boot-strap 2025-05-16 03:40:51.653715837 +0000
4+
@@ -434,7 +434,6 @@
5+
}
6+
7+
op_install() {
8+
- op_test
9+
case "$INSTALL_PREFIX,$INSTALL_BIN,$prefix" in
10+
,$HOST_TARGET/bin,*/$HOST_TARGET)
11+
INSTALL_PREFIX=`dirname $prefix`

0 commit comments

Comments
 (0)